2018-09-20 11:19:55 +02:00
|
|
|
task :lint do
|
2021-02-17 19:06:55 +01:00
|
|
|
sh "bundle exec rubocop --parallel"
|
2022-11-21 15:41:28 +01:00
|
|
|
sh "bundle exec haml-lint app/views/ app/components/"
|
2018-09-20 11:19:55 +02:00
|
|
|
sh "bundle exec scss-lint app/assets/stylesheets/"
|
2021-09-15 20:19:53 +02:00
|
|
|
sh "bundle exec i18n-tasks missing --locales fr"
|
2021-09-17 05:52:49 +02:00
|
|
|
sh "bundle exec i18n-tasks unused --locale en" # TODO: check for all locales
|
2021-09-16 20:50:21 +02:00
|
|
|
sh "bundle exec i18n-tasks check-consistent-interpolations"
|
2018-09-20 11:19:55 +02:00
|
|
|
sh "bundle exec brakeman --no-pager"
|
|
|
|
sh "yarn lint:js"
|
2022-02-02 17:16:50 +01:00
|
|
|
sh "yarn lint:types"
|
2018-09-20 11:19:55 +02:00
|
|
|
end
|