quality 26.0.0 → 27.0.0

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: 2273037269a7af1f185b729b587471d1516eb76a
4
- data.tar.gz: 4253ffcd434143862235bb3db27aea804bf7f75d
3
+ metadata.gz: ee9d91843dfd0618a8cf8d18f4e7746080da8d2f
4
+ data.tar.gz: f1ae0553c26acb796da2461e075da7c0e9812ccd
5
5
  SHA512:
6
- metadata.gz: 12009b820c8d70742fb24c226c5f49ebacb8590328dd58135d10b0333b6787c1a2105cfb1630d4d5c28316fd5d6f1d216a1989f53acafdd4c45096e475fab67a
7
- data.tar.gz: 6923b2aac536a2d7b6dcbbf35d65ff2e3d5e0826dd23c536639ee30323e85dfc84a93059cb89469a2323d015d90c57b9181f1616bb9e67b4e8d765a11874ef45
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
- $ brew install cmake icu4c # OS X
56
+ $ pip install pep8 flake8
57
+ $ brew install cmake icu4c shellcheck scalastyle # OS X
57
58
  $ gem install quality
58
59
  ```
59
60
 
@@ -21,6 +21,7 @@ module Quality
21
21
  :js_files,
22
22
  :markdown_files,
23
23
  :shell_files,
24
+ :scala_files,
24
25
  :source_and_doc_files,
25
26
  :source_files,
26
27
  :exclude_files=,
@@ -69,6 +69,10 @@ module Quality
69
69
  language_files('Python')
70
70
  end
71
71
 
72
+ def scala_files
73
+ language_files('Scala')
74
+ end
75
+
72
76
  def shell_files
73
77
  language_files('Shell')
74
78
  end
@@ -108,6 +108,7 @@ module Quality
108
108
 
109
109
  def_delegators :@config,
110
110
  :ruby_files,
111
+ :scala_files,
111
112
  :python_files,
112
113
  :markdown_files,
113
114
  :shell_files,
@@ -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
@@ -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 = '26.0.0'
7
+ VERSION = '27.0.0'
8
8
  end
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: 26.0.0
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