diff options
author | Rémy Coutable <remy@rymai.me> | 2016-09-12 19:36:24 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-09-13 09:24:42 +0200 |
commit | 9e34c57d5e698b7ef88c51051f17ea943d6b0bc0 (patch) | |
tree | 63e01f7c5b6b92bed7c07fca73f584fc3260ab75 | |
parent | 427fc10dd99cd1784f1cf2c840ddff8562884b0d (diff) | |
download | gitlab-ce-9e34c57d5e698b7ef88c51051f17ea943d6b0bc0.tar.gz |
Add haml_lint rake task
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | .gitlab-ci.yml | 2 | ||||
-rw-r--r-- | lib/tasks/haml-lint.rake | 8 |
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 |