Extract the lint task in a dedicated file
This commit is contained in:
parent
6e867bb9ee
commit
fa2afe6820
2 changed files with 7 additions and 8 deletions
8
Rakefile
8
Rakefile
|
@ -5,14 +5,6 @@ require File.expand_path('config/application', __dir__)
|
||||||
|
|
||||||
Rails.application.load_tasks
|
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
|
task :deploy_ha do
|
||||||
domains = %w(149.202.72.152 149.202.198.6)
|
domains = %w(149.202.72.152 149.202.198.6)
|
||||||
domains.each do |domain|
|
domains.each do |domain|
|
||||||
|
|
7
lib/tasks/lint.rake
Normal file
7
lib/tasks/lint.rake
Normal 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
|
Loading…
Reference in a new issue