Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ignore path behaves differently to include path #24

Open
tulipdexter opened this issue Jul 1, 2016 · 0 comments
Open

Ignore path behaves differently to include path #24

tulipdexter opened this issue Jul 1, 2016 · 0 comments

Comments

@tulipdexter
Copy link

tulipdexter commented Jul 1, 2016

When you use a config file that is in a different repo (for example, node_modules) then ignore path seems to be confused as to where it is. I have a project that gets it's front end from a private node_module and I set the config path in my gruntfile to configFile: 'node_modules/my-repo/.sass-lint.yml'.

Inside that sass-lint.yml I have include and ignore rules:

files:
    include: 'src/stylesheets/**/*.s+(a|c)ss'
    ignore:  'src/stylesheets/common/generated/**/*.scss'

The include works as expected, but the ignore doesn't.
The ignore does work if I explicitly set the path to 'node_modules/my-repo/src/src/stylesheets/common/generated/*/.scss'. However, that's not a solution as I need to be able to run the linting from the repo itself, as well as from the project that consumes the node_module.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant