ahmednuaman / grunt-scss-lint

A Grunt task to lint your SCSS
MIT License
142 stars 35 forks source link

Task watch files outside of specified folder #142

Open celsomtrindade opened 7 years ago

celsomtrindade commented 7 years ago

When I run the scsslint task, it's validating multiple .scss files, including those outside the specified folder inside allFiles. However, inside the options object, the exclude method is working fine, excluding the specified directory.

This is my config:

scsslint: {
    allFiles: [
        './dev/portal/styles/sass/**/*.scss'
    ],
    options: {
        config: './grunt/.scss-lint.yml',
        reporterOutput: './dev/portal/styles/scss-lint-report.xml',
        reporterOutputFormat: 'xml',
        exclude: './dev/portal/styles/sass/main.scss'
    }
}

It's reading even .scss files inside the node_modules folder, wich has nothing to do with my project at all. Is there anything I'm doing wrong?

ahmednuaman commented 7 years ago

🤔 Interesting, can you give me some of the console output when the task is run verbosely?