From b5f48931735c0a768ca8d0cd19fca8a2de6da393 Mon Sep 17 00:00:00 2001 From: Evan Theurer Date: Tue, 3 Mar 2015 14:33:43 +0100 Subject: [PATCH] Do not let globally set scss-lint IdSelectors affect display of errors in other files. --- src/styles/Makefile.am | 4 +++- src/styles/scss.yml | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/styles/Makefile.am b/src/styles/Makefile.am index 1a8f2980..469271d9 100644 --- a/src/styles/Makefile.am +++ b/src/styles/Makefile.am @@ -46,4 +46,6 @@ styleshint: styleslint: @if [ "$(SCSS_LINT)" = "" ]; then echo "Command 'scss-lint' not found, required when linting styles"; exit 1; fi - $(SCSS_LINT) -c scss.yml + @echo "Please be patient, this takes a while..." + @files=`find . -not -path "*/libs/*" -name "*.scss"|sort -u`; \ + for f in $$files; do $(SCSS_LINT) -c scss.yml $$f; done diff --git a/src/styles/scss.yml b/src/styles/scss.yml index 80c15e53..1af0bd0b 100644 --- a/src/styles/scss.yml +++ b/src/styles/scss.yml @@ -1,7 +1,3 @@ -scss_files: "**/*.scss" - -exclude: "libs/**" - linters: BangFormat: enabled: true