quality 30.0.1 → 31.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/quality/tools/{pep8.rb → pycodestyle.rb} +9 -9
- data/lib/quality/version.rb +1 -1
- data/quality.gemspec +2 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d18279e26548cc804fc474d45f515f94487874d5
|
4
|
+
data.tar.gz: 7ee41bba669bb5da3b10ca1443af360e698715be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d532c0e7121c464cd59b343ec78386c3d3d8d75af6a5e093c271f063bf8bcb22b8177f6fc223e7384ce56a8982911a3194e72f8471bbfd4b7f669e5425c5dde9
|
7
|
+
data.tar.gz: c11b262e77e5d6f4d2528a9bb39452475759afb16a0f839b84d7172e9e7a7777d8676f2a9af1947ebd65e51f2de5dc39646c8b4c61a8a7bb7e5d0eb79dbcbe4f
|
data/README.md
CHANGED
@@ -28,7 +28,7 @@ Quality makes use of the following other tools, which do the actual checking:
|
|
28
28
|
* [flay](https://github.com/seattlerb/flay)
|
29
29
|
* [flog](https://github.com/seattlerb/flog)
|
30
30
|
* [jscs](http://jscs.info/)
|
31
|
-
* [
|
31
|
+
* [pycodestyle](https://github.com/PyCQA/pycodestyle)
|
32
32
|
* [punchlist](https://github.com/apiology/punchlist)
|
33
33
|
* [rails_best_practices](https://github.com/railsbp/rails_best_practices)
|
34
34
|
* [reek](https://github.com/troessner/reek)
|
@@ -54,7 +54,7 @@ jumbo-latest, jumbo-x.y.z, etc)
|
|
54
54
|
## How to use - as part of a Ruby-based Rakefile
|
55
55
|
|
56
56
|
```bash
|
57
|
-
pip install
|
57
|
+
pip install pycodestyle flake8
|
58
58
|
brew install cmake icu4c shellcheck scalastyle # OS X
|
59
59
|
gem install quality
|
60
60
|
```
|
@@ -2,19 +2,19 @@
|
|
2
2
|
|
3
3
|
module Quality
|
4
4
|
module Tools
|
5
|
-
# Adds '
|
6
|
-
module
|
5
|
+
# Adds 'pycodestyle' tool support to quality gem
|
6
|
+
module Pycodestyle
|
7
7
|
private
|
8
8
|
|
9
|
-
def
|
9
|
+
def pycodestyle_args
|
10
10
|
python_files.join(' ')
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
13
|
+
def pycodestyle_count_errors(line)
|
14
14
|
if line =~ /^Usage:/
|
15
15
|
# no files specified
|
16
16
|
0
|
17
|
-
elsif line =~ /^
|
17
|
+
elsif line =~ /^pycodestyle: /
|
18
18
|
# no files specified
|
19
19
|
0
|
20
20
|
elsif line =~ /^$/
|
@@ -25,12 +25,12 @@ module Quality
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
def
|
29
|
-
ratchet_quality_cmd('
|
30
|
-
args:
|
28
|
+
def quality_pycodestyle
|
29
|
+
ratchet_quality_cmd('pycodestyle',
|
30
|
+
args: pycodestyle_args,
|
31
31
|
gives_error_code_on_no_relevant_code:
|
32
32
|
true) do |line|
|
33
|
-
|
33
|
+
pycodestyle_count_errors(line)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
data/lib/quality/version.rb
CHANGED
data/quality.gemspec
CHANGED
@@ -39,6 +39,8 @@ Gem::Specification.new do |s|
|
|
39
39
|
s.add_runtime_dependency('reek', ['>= 1.3.4'])
|
40
40
|
# flay 2.6.0 contained a command-line-parsing issue
|
41
41
|
s.add_runtime_dependency('flay', ['>= 2.4', '!= 2.6.0'])
|
42
|
+
# avoid security issues - CVE-2015-1820, CVE-2015-3448
|
43
|
+
s.add_runtime_dependency('rest-client', ['>= 1.8.0'])
|
42
44
|
#
|
43
45
|
# per version advice here - locks quality gem version with rubocop
|
44
46
|
# version to avoid unexplained metric-changing surprises:
|
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: 31.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vince Broz
|
@@ -114,6 +114,20 @@ dependencies:
|
|
114
114
|
- - "!="
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: 2.6.0
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rest-client
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 1.8.0
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 1.8.0
|
117
131
|
- !ruby/object:Gem::Dependency
|
118
132
|
name: mdl
|
119
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -346,8 +360,8 @@ files:
|
|
346
360
|
- lib/quality/tools/flog.rb
|
347
361
|
- lib/quality/tools/jscs.rb
|
348
362
|
- lib/quality/tools/mdl.rb
|
349
|
-
- lib/quality/tools/pep8.rb
|
350
363
|
- lib/quality/tools/punchlist.rb
|
364
|
+
- lib/quality/tools/pycodestyle.rb
|
351
365
|
- lib/quality/tools/rails_best_practices.rb
|
352
366
|
- lib/quality/tools/reek.rb
|
353
367
|
- lib/quality/tools/rubocop.rb
|
@@ -376,7 +390,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
376
390
|
version: '0'
|
377
391
|
requirements: []
|
378
392
|
rubyforge_project:
|
379
|
-
rubygems_version: 2.
|
393
|
+
rubygems_version: 2.5.1
|
380
394
|
signing_key:
|
381
395
|
specification_version: 4
|
382
396
|
summary: Code quality tools for Ruby
|