Add haml_lint rake task

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2016-09-12 19:36:24 +02:00
parent 427fc10dd9
commit 9e34c57d5e
2 changed files with 9 additions and 1 deletions

View File

@ -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
View 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