quality 27.0.0 → 27.1.0

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: ee9d91843dfd0618a8cf8d18f4e7746080da8d2f
4
- data.tar.gz: f1ae0553c26acb796da2461e075da7c0e9812ccd
3
+ metadata.gz: b9bed3b25242a8fe86a83777fccd193cbb554500
4
+ data.tar.gz: 5544a316d630056ad854180015236f6d93e52eff
5
5
  SHA512:
6
- metadata.gz: fedfae8a440c13c4d4767289291ee7fa1f3d1007897898ef3d119bb20fe7db8e8e6e77219dca29a3b72078a1dfb285c9316a57e716471898b570c9bdf5242ada
7
- data.tar.gz: 52b6fb6c28e468b2f2342a836d0a9807d48471628936a846bd3ccc40189fad3e379c79d64d77f349874869d4f442c8726a4ccd171d68188f999d0009308d6f74
6
+ metadata.gz: 84b6b42ba102d2703f485883c750afe1089c76892a69c0c5570b0c49673213f109e8373f2b4fa7ef84970d4b019529168051c19587e0e7a0abe80b4875bf1260
7
+ data.tar.gz: 8fd4c2805b3307dc091152dbb88f6a1268720be05aa694369e01bd94ee85d345d197a8f5415aea98307d9c80ee5afda8cf32e12051bd14e64121edf8415ffd78
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
1
  [![Build Status](https://travis-ci.org/apiology/quality.png)](https://travis-ci.org/apiology/quality)
2
2
  [![Coverage Status](https://coveralls.io/repos/apiology/quality/badge.png?branch=master)](https://coveralls.io/r/apiology/quality?branch=master)
3
3
 
4
-
5
4
  # Quality -- code quality ratchet for Ruby
6
5
 
7
- ##Overview
6
+ ## Overview
8
7
 
9
8
  Quality is a tool that runs quality checks on code in git repos using
10
9
  different analysis tools and makes sure your numbers don't get any
@@ -49,7 +48,6 @@ docker run -v `pwd`:/usr/app -v `pwd`/Rakefile.quality:/usr/quality/Rakefile api
49
48
 
50
49
  The default 'latest' tag contains the Ruby tools in a relatively small image. You can also get additional tools (see `Dockerfile.jumbo` in this directory) by using the tag `jumbo-`(version) (e.g., jumbo-latest, jumbo-x.y.z, etc)
51
50
 
52
-
53
51
  ## How to use - as part of a Ruby-based Rakefile
54
52
 
55
53
  ```bash
@@ -123,8 +121,8 @@ Quality::Rake::Task.new do |t|
123
121
  # Pipe-separated regexp string describing what to look for in
124
122
  # files as 'todo'-like 'punchlist' comments.
125
123
  #
126
- # Defaults to 'XXX|TODO'
127
- t.punchlist_regexp = 'XXX|TODO'
124
+ # Defaults to 'XXX|TODO|FIXME|OPTIMIZE|HACK|REVIEW|LATER|FIXIT'
125
+ t.punchlist_regexp = 'XXX|TODO|FIXME|OPTIMIZE|HACK|REVIEW|LATER|FIXIT'
128
126
 
129
127
  # Exclude the specified list of files--defaults to ['db/schema.rb']
130
128
  t.exclude_files = ['lib/whatever/imported_file.rb',
@@ -147,7 +145,6 @@ end
147
145
 
148
146
  Quality uses GitHub's [linguist](https://github.com/github/linguist) gem to find and classify source files to analyze. In addition to the `exclude_files` and `source_files_exclude_glob` options in Quality, you can refer to Linguists's documentation on [overrides](https://github.com/github/linguist#overrides) to use the `gitattributes` file to mark files as vendored, at which point Quality will not try to analyze them.
149
147
 
150
-
151
148
  ## Code coverage
152
149
 
153
150
  You can pull a similar trick with code coverage using SimpleCov in Ruby--put 'simplecov' in your Gemfile, and add the code below into your test_helper.rb or spec_helper.rb.
@@ -9,7 +9,7 @@ module Quality
9
9
  # Configuration for running quality tool
10
10
  class Config
11
11
  attr_accessor :skip_tools, :verbose, :quality_name, :ratchet_name,
12
- :output_dir, :punchlist_regexp
12
+ :output_dir, :punchlist_regexp, :scalastyle_config
13
13
 
14
14
  attr_writer :source_files_exclude_glob
15
15
 
@@ -119,6 +119,7 @@ module Quality
119
119
  :exclude_files,
120
120
  :source_files_exclude_glob,
121
121
  :punchlist_regexp,
122
+ :scalastyle_config,
122
123
  :js_files
123
124
  end
124
125
  end
@@ -7,7 +7,12 @@ module Quality
7
7
  private
8
8
 
9
9
  def scalastyle_args
10
- scala_files.join(' ')
10
+ c = " -c '#{scalastyle_config}' " if scalastyle_config
11
+
12
+ args = ''
13
+ args += c if c
14
+ args += scala_files.join(' ')
15
+ args
11
16
  end
12
17
 
13
18
  def quality_scalastyle
@@ -4,5 +4,5 @@
4
4
  # reek, flog, flay and rubocop and makes sure your numbers don't get
5
5
  # any worse over time.
6
6
  module Quality
7
- VERSION = '27.0.0'
7
+ VERSION = '27.1.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quality
3
3
  version: !ruby/object:Gem::Version
4
- version: 27.0.0
4
+ version: 27.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-23 00:00:00.000000000 Z
11
+ date: 2016-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport