demarches-normaliennes/lib/tasks/lint.rake

12 lines
423 B
Ruby
Raw Normal View History

task :lint do
2021-02-17 19:06:55 +01:00
sh "bundle exec rubocop --parallel"
sh "bundle exec haml-lint app/views/"
sh "bundle exec scss-lint app/assets/stylesheets/"
sh "bundle exec i18n-tasks missing --locales fr"
sh "bundle exec i18n-tasks unused --locale en" # TODO: check for all locales
sh "bundle exec i18n-tasks check-consistent-interpolations"
sh "bundle exec brakeman --no-pager"
sh "yarn lint:js"
2022-02-02 17:16:50 +01:00
sh "yarn lint:types"
end