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 /lib/tasks | |
parent | 427fc10dd99cd1784f1cf2c840ddff8562884b0d (diff) | |
download | gitlab-ce-9e34c57d5e698b7ef88c51051f17ea943d6b0bc0.tar.gz |
Add haml_lint rake task
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/haml-lint.rake | 8 |
1 files changed, 8 insertions, 0 deletions
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 |