SublimeLinter-contrib-sass-lint icon indicating copy to clipboard operation
SublimeLinter-contrib-sass-lint copied to clipboard

files:ignore are not ignored

Open sergejmueller opened this issue 8 years ago • 5 comments

Files that I have declared in .sass-lint.yml as ignore will not be ignored. Terminals sass-lint works fine and all files:ignore files are skipped.

sergejmueller avatar Jun 22 '16 17:06 sergejmueller

Hm, interesting. Which version of sass-lint are you using? And do you use the same version when running in the terminal AND in Sublime? So if you have sass-lint installed as a local node modules inside the project, Sublime will use that.

skovhus avatar Jul 01 '16 11:07 skovhus

I have the same issue.

I'm running v1.9.1 in both the terminal and node_modules.

adrianosmond avatar Sep 30 '16 10:09 adrianosmond

Any suggestions or pull requests with a fix are more than welcome. 😊

skovhus avatar Sep 30 '16 11:09 skovhus

I'm also having this problem with 1.0.4 and sass-lint 1.10.2. Running sass-lint -v -q from the command line correctly ignores the files in my .sass-lint.yml config file's files section which looks like this:

files:
  include: 'source/sass/**/*.s+(a|c)ss'
  ignore:
    - 'source/sass/legacy/**/*.*'
    - 'source/sass/lib/**/*.*'

However Sublime is reporting linting warnings for these files.

WillsB3 avatar Apr 29 '17 13:04 WillsB3

When I ran my sass-lint.yml file through a validator (http://www.yamllint.com/) it said this was bad:

files:
  include: 'src/sass/**/*.scss'
  ignore:
    - 'src/sass/_shame.scss'
    - 'src/sass/test/_tests.scss'
    - 'src/sass/vendor/**/*.*'

This, on the other hand, is valid:

files:
  include:
    - 'src/sass/**/*.scss'
  ignore:
    - 'src/sass/_shame.scss'
    - 'src/sass/test/_tests.scss'
    - 'src/sass/vendor/**/*.*'

Since, I can't replicate this error myself, I'll leave this here and hope it helps someone.

dennis-best avatar Jul 19 '17 22:07 dennis-best