Merge pull request #1271 from betagouv/rubocop-options

Set the RunRailsCops option in the rubocop config
This commit is contained in:
LeSim 2018-01-17 10:31:25 +01:00 committed by GitHub
commit d2f93b3441
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ jobs:
- *bundle_install
- run:
name: Run rubocop
command: bundle exec rubocop -R
command: bundle exec rubocop
- run:
name: Run brakeman
command: bundle exec brakeman -z

View file

@ -621,7 +621,7 @@ Rails/Validation:
Enabled: false
Rails:
Enabled: false
Enabled: true
RSpec/Focused:
Enabled: true

View file

@ -119,7 +119,7 @@ Pour exécuter les tests de l'application, plusieurs possibilités :
## Linting
- Faire tourner RuboCop : `bundle exec rubocop -R`
- Faire tourner RuboCop : `bundle exec rubocop`
- Faire tourner Brakeman : `bundle exec brakeman -z`
- Linter les fichiers HAML : `bundle exec haml-lint app/views/`
- Linter les fichiers SCSS : `bundle exec scss-lint app/assets/stylesheets/`