findbugs_translate_checkstyle_format 0.1.5 → 0.1.6
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: dec5b39073bfae8407421ca05ec98ac9536ec70f
|
4
|
+
data.tar.gz: 2a5ba5b1d3783659f807c9d54f3d6fdab95b55dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f13b5356eed10c82ca1ed26f9c462a4b37e565cce4236ac7645bce2212846baacf9adacc1a9be143a0f1437d142665e1dd85ea0658c1aa09b3e6c66ecb5f5615
|
7
|
+
data.tar.gz: e004ec9023b3b8ff31e8579b3c8ad4bf2cdc12ea9e3ffbaa4320bc4e8da0e430d86d7fc2cd2f4750b9680807972e4d55e0cef62f1ae948c039dcbccba232fa8b
|
@@ -15,7 +15,8 @@ module FindbugsTranslateCheckstyleFormat
|
|
15
15
|
|
16
16
|
checkstyle = doc.add_element("checkstyle")
|
17
17
|
if xml['BugCollection']['BugInstance']
|
18
|
-
xml['BugCollection']['BugInstance'].
|
18
|
+
bugInstances = xml['BugCollection']['BugInstance'].is_a?(Array) ? xml['BugCollection']['BugInstance'] : [xml['BugCollection']['BugInstance']]
|
19
|
+
bugInstances.each do |bugInstance|
|
19
20
|
file = checkstyle.add_element("file", {
|
20
21
|
'name' => fqcn_to_path(bugInstance['SourceLine']['@classname'], xml)
|
21
22
|
})
|