findbugs_translate_checkstyle_format 0.2.2 → 0.2.3

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: c090d107f8953b06d2dff66284e5dd965db3b2e7
4
- data.tar.gz: 4cd4973f7e25959e743748dcef94f25532191a6b
3
+ metadata.gz: 959c6f73aab8e7dd59b9ba1d36ebae50f7c4daa1
4
+ data.tar.gz: 9a27337234a2eaf88d6b0ac8a30153e206cc79b9
5
5
  SHA512:
6
- metadata.gz: f9248f03c04b7bc4fb7e1bc01003e00d3c58653483215aa7d2c51c053bbaa20fca9e178660f120002988a73e846e8afc63e273535eba054bf7f0573407b8bf7b
7
- data.tar.gz: eea497fd1ad1131aa3f5da6089eb160daf7904a7776e6886b41d45bb856e61aa22632d5aecc5c8108f65ccccc0cc07c253df1b40c6e42208455942754e383bc0
6
+ metadata.gz: 3fde012b6001963ff7f769191469b73c83d6b1222f23b4a4b13efbd96a41714d8143e2bce14cc887cf695e6e5d2d7af4457351d9100e52c4df5d8ce522343956
7
+ data.tar.gz: b1999a692220aa1cd21cc386e3f0a69b9832649baae4b656e9f8e25eeb13514cdd09b6f95943f524cb0dd6b6054f628aaed97941ee6427774c4b217027ce2302
@@ -22,15 +22,18 @@ module FindbugsTranslateCheckstyleFormat
22
22
 
23
23
  bug_instances = [bug_instances] if bug_instances.is_a?(Hash)
24
24
  bug_instances.each do |bug_instance|
25
- source_line = bug_instance['SourceLine']
26
- file = checkstyle.add_element('file',
27
- 'name' => FindbugsTranslateCheckstyleFormat::Translate.fqcn_to_path(source_line['@classname'], xml)
28
- )
29
- file.add_element('error',
30
- 'line' => source_line['@start'],
31
- 'severity' => 'error',
32
- 'message' => FindbugsTranslateCheckstyleFormat::Translate.create_message(bug_instance)
33
- )
25
+ source_lines = bug_instance['SourceLine']
26
+ source_lines = [source_lines] if source_lines.is_a?(Hash)
27
+ source_lines.each do |source_line|
28
+ file = checkstyle.add_element('file',
29
+ 'name' => FindbugsTranslateCheckstyleFormat::Translate.fqcn_to_path(source_line['@classname'], xml)
30
+ )
31
+ file.add_element('error',
32
+ 'line' => source_line['@start'],
33
+ 'severity' => 'error',
34
+ 'message' => FindbugsTranslateCheckstyleFormat::Translate.create_message(bug_instance)
35
+ )
36
+ end
34
37
  end
35
38
 
36
39
  doc
@@ -1,3 +1,3 @@
1
1
  module FindbugsTranslateCheckstyleFormat
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: findbugs_translate_checkstyle_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - noboru-i
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-03 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.4.5
143
+ rubygems_version: 2.4.5.1
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Translate findbugs format into checkstyle format.