rails-quality-assurance 1.1.0 → 1.1.1
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/lib/rails_quality_assurance/version.rb +1 -1
- data/lib/tasks/quality_assurance.rake +7 -20
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7653afd3018ca739608c627d698fe3cb4a902fbc6002d7f98f844927e9eddbf4
|
|
4
|
+
data.tar.gz: 5fdc1956489ee711083b97c7b02558dcadf8b2960618c74ddd27f7da690b4ead
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5bd69788750a3120f878e54e4de60cf7e773e904e068d4dab9b6c2476b0edde32ffc9ac7ebc14f7cd1318b12552c704af808f4871930d8e7e7cbd53f3e24f05b
|
|
7
|
+
data.tar.gz: 2c929baad097231cde94752cae68da719bbc57a6a4ca77d9269a721f832ba7d6f4ea38b27b4f2c6f0663bdcbc5ee179f6c72e6608356aae6d5284e232d4c9af7
|
|
@@ -17,18 +17,18 @@ namespace :qa do
|
|
|
17
17
|
task lint: %w[qa:rubocop qa:reek qa:flay qa:brakeman qa:audit]
|
|
18
18
|
|
|
19
19
|
desc 'Run RuboCop'
|
|
20
|
-
task rubocop
|
|
20
|
+
task :rubocop do
|
|
21
21
|
sh 'bundle exec rubocop'
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
desc 'Run Reek code smell detection'
|
|
25
|
-
task reek
|
|
25
|
+
task :reek do
|
|
26
26
|
config = File.exist?('.reek.yml') ? '' : "-c #{RailsQualityAssurance.reek_config_path}"
|
|
27
27
|
sh "bundle exec reek #{config} app lib"
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
desc 'Run Flay structural code duplication analysis'
|
|
31
|
-
task flay
|
|
31
|
+
task :flay do
|
|
32
32
|
mass = ENV.fetch('FLAY_MASS', '300')
|
|
33
33
|
output = `bundle exec flay --mass #{mass} app lib`
|
|
34
34
|
puts output
|
|
@@ -36,18 +36,18 @@ namespace :qa do
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
desc 'Run Brakeman static security analysis'
|
|
39
|
-
task brakeman
|
|
39
|
+
task :brakeman do
|
|
40
40
|
sh 'bundle exec brakeman --quiet --no-pager --exit-on-warn --exit-on-error'
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
desc 'Run Bundler Audit for vulnerable gems'
|
|
44
|
-
task audit
|
|
44
|
+
task :audit do
|
|
45
45
|
sh 'bundle exec bundle audit check --update'
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
namespace :lint do
|
|
49
49
|
desc 'Run BiomeJS on JS/TS/JSON'
|
|
50
|
-
task biome
|
|
50
|
+
task :biome do
|
|
51
51
|
if npm_script?('biome')
|
|
52
52
|
sh 'npm run biome'
|
|
53
53
|
else
|
|
@@ -57,7 +57,7 @@ namespace :qa do
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
desc 'Run Stylelint on CSS'
|
|
60
|
-
task stylelint
|
|
60
|
+
task :stylelint do
|
|
61
61
|
if npm_script?('stylelint')
|
|
62
62
|
sh 'npm run stylelint'
|
|
63
63
|
else
|
|
@@ -74,19 +74,6 @@ namespace :qa do
|
|
|
74
74
|
task ci: %w[qa:lint qa:frontend spec:parallel]
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
namespace :lint do
|
|
78
|
-
desc 'Alias for qa:lint'
|
|
79
|
-
task all: 'qa:lint'
|
|
80
|
-
|
|
81
|
-
desc 'Run BiomeJS linter'
|
|
82
|
-
task biome: 'qa:lint:biome'
|
|
83
|
-
|
|
84
|
-
desc 'Run Stylelint on CSS'
|
|
85
|
-
task stylelint: 'qa:lint:stylelint'
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
task lint: 'qa:lint'
|
|
89
|
-
|
|
90
77
|
namespace :spec do
|
|
91
78
|
desc 'Run specs in parallel with system specs isolated'
|
|
92
79
|
task parallel: :environment do
|