Extract the lint task in a dedicated file

This commit is contained in:
gregoirenovel 2018-09-20 11:19:55 +02:00
parent 6e867bb9ee
commit fa2afe6820
2 changed files with 7 additions and 8 deletions

View file

@ -5,14 +5,6 @@ require File.expand_path('config/application', __dir__)
Rails.application.load_tasks
task :lint do
sh "bundle exec rubocop"
sh "bundle exec haml-lint app/views/"
sh "bundle exec scss-lint app/assets/stylesheets/"
sh "bundle exec brakeman --no-pager"
sh "yarn lint:js"
end
task :deploy_ha do
domains = %w(149.202.72.152 149.202.198.6)
domains.each do |domain|

7
lib/tasks/lint.rake Normal file
View file

@ -0,0 +1,7 @@
task :lint do
sh "bundle exec rubocop"
sh "bundle exec haml-lint app/views/"
sh "bundle exec scss-lint app/assets/stylesheets/"
sh "bundle exec brakeman --no-pager"
sh "yarn lint:js"
end