From d5f55cb36069165de1dda93faad722c3b4d8efac Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Tue, 16 Jan 2018 18:57:04 +0100 Subject: [PATCH] Set the RunRailsCops option in the rubocop config Instead of relying on a flag --- .circleci/config.yml | 2 +- .rubocop.yml | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bd4c1e637..ccd163b61 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/.rubocop.yml b/.rubocop.yml index 4919aebc8..b7222b739 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -621,7 +621,7 @@ Rails/Validation: Enabled: false Rails: - Enabled: false + Enabled: true RSpec/Focused: Enabled: true diff --git a/README.md b/README.md index d451e6c15..1e50be21a 100644 --- a/README.md +++ b/README.md @@ -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/`