quality 26.0.0 → 27.0.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 +2 -1
- data/lib/quality/config.rb +1 -0
- data/lib/quality/linguist_source_file_globber.rb +4 -0
- data/lib/quality/runner.rb +1 -0
- data/lib/quality/tools/scalastyle.rb +27 -0
- data/lib/quality/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee9d91843dfd0618a8cf8d18f4e7746080da8d2f
|
4
|
+
data.tar.gz: f1ae0553c26acb796da2461e075da7c0e9812ccd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fedfae8a440c13c4d4767289291ee7fa1f3d1007897898ef3d119bb20fe7db8e8e6e77219dca29a3b72078a1dfb285c9316a57e716471898b570c9bdf5242ada
|
7
|
+
data.tar.gz: 52b6fb6c28e468b2f2342a836d0a9807d48471628936a846bd3ccc40189fad3e379c79d64d77f349874869d4f442c8726a4ccd171d68188f999d0009308d6f74
|
data/README.md
CHANGED
@@ -53,7 +53,8 @@ The default 'latest' tag contains the Ruby tools in a relatively small image. Y
|
|
53
53
|
## How to use - as part of a Ruby-based Rakefile
|
54
54
|
|
55
55
|
```bash
|
56
|
-
$
|
56
|
+
$ pip install pep8 flake8
|
57
|
+
$ brew install cmake icu4c shellcheck scalastyle # OS X
|
57
58
|
$ gem install quality
|
58
59
|
```
|
59
60
|
|
data/lib/quality/config.rb
CHANGED
data/lib/quality/runner.rb
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Quality
|
4
|
+
module Tools
|
5
|
+
# Adds 'scalastyle' tool support to quality gem
|
6
|
+
module Scalastyle
|
7
|
+
private
|
8
|
+
|
9
|
+
def scalastyle_args
|
10
|
+
scala_files.join(' ')
|
11
|
+
end
|
12
|
+
|
13
|
+
def quality_scalastyle
|
14
|
+
ratchet_quality_cmd('scalastyle',
|
15
|
+
args: scalastyle_args,
|
16
|
+
gives_error_code_on_no_relevant_code: true,
|
17
|
+
gives_error_code_on_violations: true) do |line|
|
18
|
+
if line =~ /file=/
|
19
|
+
1
|
20
|
+
else
|
21
|
+
0
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/quality/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quality
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 27.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vince Broz
|
@@ -351,6 +351,7 @@ files:
|
|
351
351
|
- lib/quality/tools/rails_best_practices.rb
|
352
352
|
- lib/quality/tools/reek.rb
|
353
353
|
- lib/quality/tools/rubocop.rb
|
354
|
+
- lib/quality/tools/scalastyle.rb
|
354
355
|
- lib/quality/tools/shellcheck.rb
|
355
356
|
- lib/quality/version.rb
|
356
357
|
- lib/quality/which.rb
|