findbugs_2_checkstyle 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 014ee90ce142393b3d7d8b9d5244f47646ed1249
4
- data.tar.gz: a1c563957fa766c4c2898a86df4bbe0e514704a9
3
+ metadata.gz: 2f1d1b53c569b65c8b55390c8b2c877cc29cc833
4
+ data.tar.gz: b281ceda6f6277d2600c08f0cff0ef9abdea1d07
5
5
  SHA512:
6
- metadata.gz: c2ff697e13c07c232b36c303c1d05b1f38b3edc745db34641a29fe020b5c0e1317f92a28befe446d17b655e8e1ecce4b07f629e5f4366a110ac2fbc50526fed5
7
- data.tar.gz: 7627edd0855e067e055b60d795bec6ee880e8af8e666f4be581ed49fe8269090d4561fa22106f112241837540bd98937bdf202089a4eb060a045ecf4bea05cb5
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 'findbugs_translate_checkstyle_format'
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 findbugs_translate_checkstyle_format
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 | findbugs_translate_checkstyle_format convert
31
+ cat findbugs.xml | findbugs_2_checkstyle convert
32
32
  ```
33
33
 
34
34
  ### Use command-line option
35
35
 
36
36
  ```
37
- findbugs_translate_checkstyle_format convert --file="findbugs.xml"
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]
@@ -1,3 +1,3 @@
1
1
  module Findbugs2Checkstyle
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-07-30 00:00:00.000000000 Z
11
+ date: 2015-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor