findbugs_2_checkstyle 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -6
- data/lib/findbugs_2_checkstyle/convert.rb +2 -1
- data/lib/findbugs_2_checkstyle/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f1d1b53c569b65c8b55390c8b2c877cc29cc833
|
|
4
|
+
data.tar.gz: b281ceda6f6277d2600c08f0cff0ef9abdea1d07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d50e0bbc060cb12bd7a4135d0fede34a9965c2a268c954296465200c1248f567054de3f4da9e8fc9ff88e704e868618862c4035101d77fc8bff3fe35ded04b8
|
|
7
|
+
data.tar.gz: a00b10eb0b50255a3d0e984754628ba69af4e90877f908c374cf033675ba923567b71846669fefe0a6f7c32064455a92f72da79e805cf33dbe541af2059741f3
|
data/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Translate findbugs format into checkstyle format.
|
|
|
12
12
|
Add this line to your application's Gemfile:
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
|
-
gem '
|
|
15
|
+
gem 'findbugs_2_checkstyle'
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
And then execute:
|
|
@@ -21,20 +21,20 @@ And then execute:
|
|
|
21
21
|
|
|
22
22
|
Or install it yourself as:
|
|
23
23
|
|
|
24
|
-
$ gem install
|
|
24
|
+
$ gem install findbugs_2_checkstyle
|
|
25
25
|
|
|
26
26
|
## Usage
|
|
27
27
|
|
|
28
28
|
### Use pipe
|
|
29
29
|
|
|
30
30
|
```
|
|
31
|
-
cat findbugs.xml |
|
|
31
|
+
cat findbugs.xml | findbugs_2_checkstyle convert
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### Use command-line option
|
|
35
35
|
|
|
36
36
|
```
|
|
37
|
-
|
|
37
|
+
findbugs_2_checkstyle convert --file="findbugs.xml"
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
## Development
|
|
@@ -50,5 +50,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERN
|
|
|
50
50
|
|
|
51
51
|
## License
|
|
52
52
|
|
|
53
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
54
|
-
|
|
53
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
@@ -9,6 +9,7 @@ module Findbugs2Checkstyle
|
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
def trans(xml)
|
|
12
|
+
print "xxxxx"
|
|
12
13
|
require 'rexml/document'
|
|
13
14
|
doc = REXML::Document.new
|
|
14
15
|
doc << REXML::XMLDecl.new('1.0', 'UTF-8')
|
|
@@ -42,7 +43,7 @@ module Findbugs2Checkstyle
|
|
|
42
43
|
end
|
|
43
44
|
|
|
44
45
|
def fqcn_to_path(fqcn, xml)
|
|
45
|
-
path = fqcn.gsub('.', '/') + '.java'
|
|
46
|
+
path = fqcn.gsub('.', '/').split("$").first + '.java'
|
|
46
47
|
src_dirs = xml['BugCollection']['Project']['SrcDir']
|
|
47
48
|
unless src_dirs.is_a?(Array)
|
|
48
49
|
src_dirs = [src_dirs]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: findbugs_2_checkstyle
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tientun
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|