Add haml_lint rake task
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
427fc10dd9
commit
9e34c57d5e
2 changed files with 9 additions and 1 deletions
|
@ -206,7 +206,7 @@ spinach 9 10 ruby21: *spinach-knapsack-ruby21
|
|||
- bundle exec $CI_BUILD_NAME
|
||||
|
||||
rubocop: *exec
|
||||
rake haml-lint: *exec
|
||||
rake haml_lint: *exec
|
||||
rake scss_lint: *exec
|
||||
rake brakeman: *exec
|
||||
rake flog: *exec
|
||||
|
|
8
lib/tasks/haml-lint.rake
Normal file
8
lib/tasks/haml-lint.rake
Normal file
|
@ -0,0 +1,8 @@
|
|||
unless Rails.env.production?
|
||||
require 'haml_lint/rake_task'
|
||||
|
||||
HamlLint::RakeTask.new do |t|
|
||||
t.config = '.haml-lint.yml'
|
||||
t.files = ['app/views']
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue