gilbarbara / codeclimate-stylelint

A Code Climate engine for the mighty, modern CSS linter
24 stars 18 forks source link

Can't lint css file #1

Closed soderlind closed 7 years ago

soderlind commented 7 years ago

I'm very happy that you've created this add-on to codeclimate, but why can't I lint css files ?

I get, when I'm running codeclimate analyze -e stylelint:beta:

Starting analysis
Running stylelint: Done!
error: (CC::Analyzer::Engine::EngineFailure) engine stylelint:beta failed with status 1 and stderr
No files to lint with the extensions: ".scss", ".less", ".sss".
See our documentation at https://docs.codeclimate.com/docs/stylelint for more information.
soderlind commented 7 years ago

btw, here's my .codeclimate.yml:

---
engines:
  duplication:
    enabled: true
    config:
      languages:
      - php
  eslint:
    enabled: true
    # env:
    #   jquery: true
  fixme:
    enabled: true
  phpcodesniffer:
    enabled: true
    config:
      standard: WordPress-Core
  stylelint:
    enabled: true
    config:
        config: .stylelintrc
        ignore_warnings: true
ratings:
  paths:
  - "**.js"
  - "**.php"
  - "**.css"
exclude_paths:
- node_modules/**/*
- _files/**

and here's my .stylelintrc (I've added https://github.com/ntwb/stylelint-config-wordpress):

{
  "extends": "stylelint-config-wordpress"
}
gilbarbara commented 7 years ago

Hey! Thanks 👍

I've added .css to the engine, sorry about that. 6ee6a6433d290f285f3b14f8ed6eb687ebef6024 Also I've added the stylelint-config-wordpress to the list of supported configs.

It should probably be in the next codeclimate update. @dblandin

soderlind commented 7 years ago

Excellent, thank you.