Set the RunRailsCops option in the rubocop config
Instead of relying on a flag
This commit is contained in:
parent
c76097ef55
commit
d5f55cb360
3 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ jobs:
|
||||||
- *bundle_install
|
- *bundle_install
|
||||||
- run:
|
- run:
|
||||||
name: Run rubocop
|
name: Run rubocop
|
||||||
command: bundle exec rubocop -R
|
command: bundle exec rubocop
|
||||||
- run:
|
- run:
|
||||||
name: Run brakeman
|
name: Run brakeman
|
||||||
command: bundle exec brakeman -z
|
command: bundle exec brakeman -z
|
||||||
|
|
|
@ -621,7 +621,7 @@ Rails/Validation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Rails:
|
Rails:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
|
||||||
RSpec/Focused:
|
RSpec/Focused:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
|
@ -119,7 +119,7 @@ Pour exécuter les tests de l'application, plusieurs possibilités :
|
||||||
|
|
||||||
## Linting
|
## Linting
|
||||||
|
|
||||||
- Faire tourner RuboCop : `bundle exec rubocop -R`
|
- Faire tourner RuboCop : `bundle exec rubocop`
|
||||||
- Faire tourner Brakeman : `bundle exec brakeman -z`
|
- Faire tourner Brakeman : `bundle exec brakeman -z`
|
||||||
- Linter les fichiers HAML : `bundle exec haml-lint app/views/`
|
- Linter les fichiers HAML : `bundle exec haml-lint app/views/`
|
||||||
- Linter les fichiers SCSS : `bundle exec scss-lint app/assets/stylesheets/`
|
- Linter les fichiers SCSS : `bundle exec scss-lint app/assets/stylesheets/`
|
||||||
|
|
Loading…
Reference in a new issue