summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--lib/tasks/haml-lint.rake8
2 files changed, 9 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1b777f5016f..b5eef681d0e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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
diff --git a/lib/tasks/haml-lint.rake b/lib/tasks/haml-lint.rake
new file mode 100644
index 00000000000..80f70820853
--- /dev/null
+++ b/lib/tasks/haml-lint.rake
@@ -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