rubocop-junit-formatter 0.1.3 → 0.1.4

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: 069727f793c3b467b7e7c6352da02d5a9f868092
4
- data.tar.gz: d8eee34af88126df93913965667879f9b9fdc3db
3
+ metadata.gz: a3bcdc8561ae001a526a407379515e8fd303bac7
4
+ data.tar.gz: 8fa2f4068bb4885dd061418f5d7a7795ed4284d2
5
5
  SHA512:
6
- metadata.gz: 1a5d034fe2297f504b239c497a029ee08fb699e178a94ee7cd153b27cdc80853c6f13c0ab00a6f4812fd7eb3d89f64ed53dd75d9a1a8cd27c9387ad2e8909888
7
- data.tar.gz: c40f146c33310a020d9776ae75eda2454951b2007576c12362eb67253600534263e98009a6f044ab9937b9ffad959bedd7a905bca5e8cc69a2e59dc15e5dd8f6
6
+ metadata.gz: 4f5e795d73268d84f09563d47d7c2e7c91d6a6fb58afe8a72c1b4601e97af6d25a9ed38f22b254d3e0833d912725a6f8ae37fd070824985f83fbb1b645ec37e0
7
+ data.tar.gz: 79f54f301ad29a5fb1ec99f57fd2b48a4b0ab8a820a61ec66627abb1c1e3527212f5dfde46bde9c06cdcf531240b8afde2e3c70e045352e109eebf04ff16e387
data/README.md CHANGED
@@ -1,6 +1,21 @@
1
1
  # Rubocop::Junit::Formatter
2
2
 
3
- TODO: Write a gem description
3
+ Provides JUnit formatting for Rubocop. Usable with Continuous integration services and IDEs.
4
+
5
+ ## Usage
6
+
7
+ In order to have the formatter available inside CLI utility, you need to require it first.
8
+
9
+ Example for CI, that provides `$REPORTS_DIR` environment variable for collecting JUnit reports
10
+
11
+ ```bash
12
+ bundle exec rubocop \\
13
+ -r $(bundle show rubocop-junit-formatter)/lib/rubocop/formatter/junit_formatter.rb \\
14
+ --format RuboCop::Formatter::JUnitFormatter --out $REPORTS_DIR/rubocop.xml
15
+ ```
16
+
17
+ Important options are `-r` (require class) and `--format`. Option `--out` should go after appropriate `--format`.
18
+ And you can have multiple formats if you like.
4
19
 
5
20
  ## Installation
6
21
 
@@ -18,10 +33,6 @@ Or install it yourself as:
18
33
 
19
34
  $ gem install rubocop-junit-formatter
20
35
 
21
- ## Usage
22
-
23
- TODO: Write usage instructions here
24
-
25
36
  ## Contributing
26
37
 
27
38
  1. Fork it ( https://github.com/[my-github-username]/rubocop-junit-formatter/fork )
@@ -19,8 +19,6 @@ module RuboCop
19
19
  end
20
20
 
21
21
  def file_finished(file, offences)
22
- return if offences.empty?
23
-
24
22
  # One test case per cop per file
25
23
  COPS.each do |cop|
26
24
  REXML::Element.new('testcase', @testsuite).tap do |f|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "rubocop-junit-formatter"
7
- spec.version = '0.1.3'
7
+ spec.version = '0.1.4'
8
8
  spec.authors = ["Mikko Kokkonen"]
9
9
  spec.email = ["mikko@mikian.com"]
10
10
  spec.summary = %q{Outputs RuboCop Offences as JUnit report}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-junit-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikko Kokkonen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-12 00:00:00.000000000 Z
11
+ date: 2018-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.4.5
76
+ rubygems_version: 2.6.13
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Outputs RuboCop Offences as JUnit report