Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-03-16 01:24:06 +0300
committerDouwe Maan <douwe@selenight.nl>2016-03-16 01:24:06 +0300
commitecfa6cd75bc0f1e003928f07f30446003a0f9875 (patch)
tree6e4212708c362c0d4e086068fe6de9ead695bf80 /lib/tasks
parent7ae573c75ac51413c04249f77ed8ca4e144b7549 (diff)
parenta80b49ba1ac8ab54fd130ed889ecfbd0dccf81af (diff)
Merge branch 'master' into git-2-7-3
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/scss-lint.rake10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tasks/scss-lint.rake b/lib/tasks/scss-lint.rake
new file mode 100644
index 00000000000..250fd8699e4
--- /dev/null
+++ b/lib/tasks/scss-lint.rake
@@ -0,0 +1,10 @@
+unless Rails.env.production?
+ require 'scss_lint/rake_task'
+
+ SCSSLint::RakeTask.new do |t|
+ t.config = '.scss-lint.yml'
+ # See https://github.com/brigade/scss-lint/issues/726
+ # Hack, otherwise linter won't respect scss_files option in config file.
+ t.files = []
+ end
+end