gilbarbara/codeclimate-stylelint

Can't lint sass files

johndrwood opened this issue · 2 comments

I can't seem to get the codeclimate stylelint plugin to lint .sass files. It works fine when running the stylelint CLI but not in the codeclimate CLI.

My .stylelintrc is as follows:

{
  "rules": {
    "declaration-property-value-blacklist": {
      "border": ["none"]
    }
  }
}

.codeclimate.yml is as follows:

version: "2"
plugins:
  stylelint:
    enabled: true

When running:

some_path% codeclimate analyze

The output is:

Starting analysis
Running structure: Done!
Running duplication: Done!
Running stylelint: Done!

== print.css (1 issue) ==
13: Unexpected value "none" for property "border" (declaration-property-value-blacklist) [stylelint]

Analysis complete! Found 1 issue.

But when I run:

some_path% stylelint .

The output is:

admin-tables.sass
 2:3  ✖  Unexpected value "none" for property "border"   declaration-property-value-blacklist

print.css
 13:37  ✖  Unexpected value "none" for property "border"   declaration-property-value-blacklist

Any guidance on how to get codeclimate to lint .sass files?

Not sure if it's as simple as adding .sass here?

const options = { extensions: ['.css', '.scss', '.less', '.sss', '.html', '.vue'] };

Added in 2.2.0