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: 21bd0fd53ec00a487c206477fc28de562a266834
4
- data.tar.gz: af0fe5484c6c3e84162486f650321203ba455ed5
3
+ metadata.gz: dec5b39073bfae8407421ca05ec98ac9536ec70f
4
+ data.tar.gz: 2a5ba5b1d3783659f807c9d54f3d6fdab95b55dd
5
5
  SHA512:
6
- metadata.gz: 376dbacbcbed1c24debdcb92a87cc1fba92fb3607ae53f5af8ca109cc5079100d60b7c59743410dee5e3f3f69cb05acacb2a2f23ac69f882aa5ba300f869c05b
7
- data.tar.gz: 5b54e4d9e7e97e7ef1b4bec0a555ef8b33d3494a3910650b2df883185cf24fc8f5ff289108ee5f92c2623d29aa62443b39b1b9c2cfd22406c0347dd43635e41a
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'].each do |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
  })
@@ -1,3 +1,3 @@
1
1
  module FindbugsTranslateCheckstyleFormat
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: findbugs_translate_checkstyle_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - noboru-i