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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af620abf8dc16da64d1bd181cfe9e4dc0edbd8fda42c1c3fbe3a63bb0bbed993
4
- data.tar.gz: 34c9e428d1a4280eb7b4903a961422247a7d2e04fc58a1644b2b29fabc71050e
3
+ metadata.gz: 7653afd3018ca739608c627d698fe3cb4a902fbc6002d7f98f844927e9eddbf4
4
+ data.tar.gz: 5fdc1956489ee711083b97c7b02558dcadf8b2960618c74ddd27f7da690b4ead
5
5
  SHA512:
6
- metadata.gz: 38faec8bae9f7487285056ca8d533bda0cd98cb0217ff3c50b4541c9377ae9822e6a4946e3b326251c5bdad9134a1c70cacab0dc8f4c31ce59d01aecbf80e4b7
7
- data.tar.gz: a94e1630eaa5eabd0cc8455e5751209344951a4966b378e39b5582525f14ae14aa6a547509af285fefac3701ce7f34d86bc6e398b5baca79aa2db461a207ff48
6
+ metadata.gz: 5bd69788750a3120f878e54e4de60cf7e773e904e068d4dab9b6c2476b0edde32ffc9ac7ebc14f7cd1318b12552c704af808f4871930d8e7e7cbd53f3e24f05b
7
+ data.tar.gz: 2c929baad097231cde94752cae68da719bbc57a6a4ca77d9269a721f832ba7d6f4ea38b27b4f2c6f0663bdcbc5ee179f6c72e6608356aae6d5284e232d4c9af7
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsQualityAssurance
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
@@ -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: :environment do
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: :environment do
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: :environment do
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: :environment do
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: :environment do
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: :environment do
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: :environment do
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-quality-assurance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mauricio Zaffari