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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 959c6f73aab8e7dd59b9ba1d36ebae50f7c4daa1
|
4
|
+
data.tar.gz: 9a27337234a2eaf88d6b0ac8a30153e206cc79b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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
|
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.
|
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:
|
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.
|