You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
342 B
18 lines
342 B
3 years ago
|
desc "Run Rubocop"
|
||
|
task rubocop: :environment do
|
||
|
sh "bundle exec rubocop"
|
||
|
end
|
||
|
|
||
|
desc "Run ERB Lint"
|
||
|
task erblint: :environment do
|
||
|
sh "bundle exec erblint --lint-all"
|
||
|
end
|
||
|
|
||
|
desc "Run Stylelint"
|
||
|
task stylelint: :environment do
|
||
|
sh "yarn stylelint app/frontend/styles"
|
||
|
end
|
||
|
|
||
|
desc "Run all the linters"
|
||
|
task lint: %i[rubocop erblint stylelint]
|