Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add ignore file(s) support #169

Closed
AndersMad opened this issue Aug 28, 2021 · 2 comments · Fixed by #232
Closed

Add ignore file(s) support #169

AndersMad opened this issue Aug 28, 2021 · 2 comments · Fixed by #232

Comments

@AndersMad
Copy link

Let's you ignore SCSS file(s):

Change in index.js

const sassFiles = glob.sync(path.join(dir, '**/*.scss'), { ignore: opt.ignoreFiles });

Usage:

const unused = fusv.find("./scss", { ignoreFiles: ["**/_crappy-vars.scss"], ignore: ["$crappy-var"] });`
@Dervisevic
Copy link

+1 would love to have this feature as well. We have a style-dictionary generated file that has a lot of unused variables and would be great to be able to ignore it and not have it sit elsewhere to avoid getting scanned.

@XhmikosR
Copy link
Owner

Happy to accept a clean PR with tests :)

@XhmikosR XhmikosR changed the title [Suggestion] Add ignore file(s) (to glob options) Add ignore file(s) support Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants