Move linters to a Rake task

This allow running all linters in a single pass.
This commit is contained in:
Pierre de La Morinerie 2018-08-13 14:05:16 +02:00
parent 39a06bec16
commit d6fd150929
3 changed files with 13 additions and 19 deletions

View file

@ -90,20 +90,8 @@ jobs:
- *yarn_restore_cache
- *yarn_install
- run:
name: Run eslint
command: yarn lint:js
- run:
name: Run rubocop
command: bundle exec rubocop
- run:
name: Run brakeman
command: bundle exec brakeman
- run:
name: Run haml-lint
command: bundle exec haml-lint app/views/
- run:
name: Run scss-lint
command: bundle exec scss-lint app/assets/stylesheets/
name: Run linters
command: bundle exec rake lint
deploy:
<<: *defaults
steps: