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 +4 -4
- data/README.md +3 -6
- data/lib/quality/config.rb +1 -1
- data/lib/quality/runner.rb +1 -0
- data/lib/quality/tools/scalastyle.rb +6 -1
- data/lib/quality/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9bed3b25242a8fe86a83777fccd193cbb554500
|
4
|
+
data.tar.gz: 5544a316d630056ad854180015236f6d93e52eff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84b6b42ba102d2703f485883c750afe1089c76892a69c0c5570b0c49673213f109e8373f2b4fa7ef84970d4b019529168051c19587e0e7a0abe80b4875bf1260
|
7
|
+
data.tar.gz: 8fd4c2805b3307dc091152dbb88f6a1268720be05aa694369e01bd94ee85d345d197a8f5415aea98307d9c80ee5afda8cf32e12051bd14e64121edf8415ffd78
|
data/README.md
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
[](https://travis-ci.org/apiology/quality)
|
2
2
|
[](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.
|
data/lib/quality/config.rb
CHANGED
@@ -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
|
|
data/lib/quality/runner.rb
CHANGED
data/lib/quality/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|