linter-scss-lint icon indicating copy to clipboard operation
linter-scss-lint copied to clipboard

Error when editing excluded file

Open Andersos opened this issue 10 years ago • 2 comments

When using a exclude property in the .scss-lint.yml you get the following error when you are saving a file that is excluded.

TypeError: All files matched by the patterns [/Users/path/to/excluded/file] were excluded by the patterns:
[/Users/path/to/excluded/file]

Andersos avatar Aug 28 '15 13:08 Andersos

+1

ruanmer avatar Sep 15 '15 15:09 ruanmer

+1

Running into this problem specifically with Jekyll. It requires YAML in the main.scss file to generate correctly, but this of course throws a syntax error with scss-lint. And I can't exclude main.scss because then I get an error everytime I save it.

Anyway we could have some flag/option to silently exclude files vs throwing an error if all files being linted are being excluded?

anthonyberan avatar Sep 16 '15 06:09 anthonyberan