code_quality 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -2
- data/README.md +1 -1
- data/README_for_rake.md +1 -1
- data/bin/travis-update-gh-pages.sh +2 -2
- data/code_quality.gemspec +5 -4
- data/lib/code_quality/version.rb +1 -1
- data/lib/tasks/code_quality.rake +1 -0
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 264055dd1b5ce26c7b1528294560c7a6043fdcaf029b26fca0c9bae4826b7a39
|
4
|
+
data.tar.gz: 286004c2c8b3bdb5f871a61713bcfe01e61ed15552ad4a2689fcfbde7031b44e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfba6ed867800cc23f84ab44bff70b8405bce22bdee46c3fcbd409b680f534fae665879d1fc089dc82f48f6289d134404ba94c35c59019c99be825c1e0d0b7f8
|
7
|
+
data.tar.gz: 23a15669c7d41c80afd1d511686d80da0f66e3a44e1946a083f37fca691434160986eed782a7b7ece4c74dba8205f7ab0d935569ccc89faa41ca8ec7a97022bd
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Run code quality and security audit report with one command `code_quality`.
|
4
4
|
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/code_quality.svg)](https://badge.fury.io/rb/code_quality)
|
6
|
-
[![Build Status](https://travis-ci.
|
6
|
+
[![Build Status](https://travis-ci.com/rainchen/code_quality.svg)](https://travis-ci.com/rainchen/code_quality)
|
7
7
|
[![HitCount](http://hits.dwyl.io/rainchen/code_quality.svg)](http://hits.dwyl.io/rainchen/code_quality)
|
8
8
|
|
9
9
|
## Principle
|
data/README_for_rake.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Run code quality and security audit report with one rake task as `rake code_quality`.
|
4
4
|
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/code_quality.svg)](https://badge.fury.io/rb/code_quality)
|
6
|
-
[![Build Status](https://travis-ci.
|
6
|
+
[![Build Status](https://travis-ci.com/rainchen/code_quality.svg)](https://travis-ci.com/rainchen/code_quality)
|
7
7
|
[![HitCount](http://hits.dwyl.io/rainchen/code_quality.svg)](http://hits.dwyl.io/rainchen/code_quality)
|
8
8
|
|
9
9
|
## Principle
|
@@ -18,11 +18,11 @@ if [ ${TRAVIS} = "true" ]; then
|
|
18
18
|
cp -Rf $HOME/tmp/code_quality/* .
|
19
19
|
|
20
20
|
#setup git user
|
21
|
-
git config user.email "travis@travis-ci.
|
21
|
+
git config user.email "travis@travis-ci.com"
|
22
22
|
git config user.name "Travis CI"
|
23
23
|
|
24
24
|
#add, commit and push files
|
25
|
-
travis_build_url="https://travis-ci.
|
25
|
+
travis_build_url="https://travis-ci.com/${TRAVIS_REPO_SLUG}/builds/${TRAVIS_BUILD_ID}"
|
26
26
|
git add -f .
|
27
27
|
git commit -m "Travis CI build $travis_build_url pushed to gh-pages"
|
28
28
|
git push -fq origin gh-pages > /dev/null
|
data/code_quality.gemspec
CHANGED
@@ -23,10 +23,11 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_dependency "bundler-audit"
|
25
25
|
spec.add_dependency "brakeman"
|
26
|
-
spec.add_dependency "rubycritic", "~>
|
27
|
-
spec.add_dependency "rubocop", "~> 0.
|
28
|
-
spec.add_dependency "rubocop-github", "~> 0.
|
29
|
-
spec.add_dependency "code_metric_fu", "~> 4.14.4"
|
26
|
+
spec.add_dependency "rubycritic", "~> 4.1.0"
|
27
|
+
spec.add_dependency "rubocop", "~> 0.70.0"
|
28
|
+
spec.add_dependency "rubocop-github", "~> 0.13.0"
|
29
|
+
# spec.add_dependency "code_metric_fu", "~> 4.14.4"
|
30
|
+
spec.add_dependency "metric_fu", "~> 4.13.0"
|
30
31
|
|
31
32
|
spec.add_development_dependency "bundler", ">= 2.0.2"
|
32
33
|
spec.add_development_dependency "rake", ">= 12.3.3"
|
data/lib/code_quality/version.rb
CHANGED
data/lib/tasks/code_quality.rake
CHANGED
@@ -180,6 +180,7 @@ namespace :code_quality do
|
|
180
180
|
# generate report
|
181
181
|
report = `rubocop -c #{config_file} -S -R -P #{options[:cli_options]} --format offenses --format html -o #{report_path}`
|
182
182
|
puts report
|
183
|
+
puts "Generated by RuboCop #{`rubocop --version`}"
|
183
184
|
puts "Report generated to #{report_path}"
|
184
185
|
show_in_browser File.realpath(report_path)
|
185
186
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code_quality
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RainChen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler-audit
|
@@ -44,56 +44,56 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 4.1.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 4.1.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.70.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.70.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-github
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.13.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.13.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: metric_fu
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 4.
|
89
|
+
version: 4.13.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 4.
|
96
|
+
version: 4.13.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: bundler
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|