findbugs_translate_checkstyle_format 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9db0b643494cb39ff27fdd3b9fa1dc4669f6518c
4
- data.tar.gz: 714c95d87351ffd987ed89f6a0062b88f0fa0e2e
3
+ metadata.gz: 8cc85e4f04e51abab5122a929bd8b8ff44c230e7
4
+ data.tar.gz: 5992c4e2355e9d99df085dd98bdc834093d28778
5
5
  SHA512:
6
- metadata.gz: 0d487b404b69ade4d7a1460606f46b6acef814564d295779b400f97449b672a740f28432442770eecf7ff27622034651f301685dac961201df5c16adaa707d45
7
- data.tar.gz: f82d6de566fe09b3be4a34a77d280d0be11e81d560801c05f95ecdeb4f36b6efe853c2f76bbc987fc47e66c6959c72e4882fc3775e8bf72593e309d4dc26187e
6
+ metadata.gz: b224f85dfbf36a6a5a248671ce977aa758c26fd6951c2498ac89124e8f100a72266e71a27314c22bc108fafecd170ab51a968556a56d29faeea9426bd4a4519e
7
+ data.tar.gz: 8033f099bb589646b02c21357d94682c2878be8ad200296568966c0e3ee77c9a9afce6939b4341e80cded937bd3411acc93725d59f0ee0ea783285310b2dad14
@@ -10,6 +10,7 @@ module FindbugsTranslateCheckstyleFormat
10
10
  data = fetch_data(options)
11
11
  xml = parse(data)
12
12
  checkstyle = trans(xml)
13
+ return unless checkstyle
13
14
  checkstyle.write(STDOUT, 2)
14
15
  end
15
16
 
@@ -9,6 +9,7 @@ module FindbugsTranslateCheckstyleFormat
9
9
  end
10
10
 
11
11
  def trans(xml)
12
+ return nil unless xml['BugCollection']['BugInstance']
12
13
  require 'rexml/document'
13
14
  doc = REXML::Document.new
14
15
  doc << REXML::XMLDecl.new('1.0', 'UTF-8')
@@ -1,3 +1,3 @@
1
1
  module FindbugsTranslateCheckstyleFormat
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - noboru-i