Allow negation ! for --ignore
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.3k
- Forks
- 474
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 12
Description
Your documentation shows how ignore can handle multiple file paths
https://github.com/htmlhint/HTMLHint/blob/master/docs/user-guide/usage/options.md
However the negation command '!' is currently useless.
This means if I only want to search in a folder, I can't use
!**/GoodFolder/**
Instead I must manually ignore all other folders.
**/BadFolder1/**,......,**/BadFolder8889986767/**
I'd also be ok if you allowed a new rule that would filter paths that could be modified in .htmlhintrc
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ignore-option documentation in docs/user-guide/usage/options.md, then trace the CLI entry point that parses --ignore and filters paths. Confirm how the existing multiple-path patterns are handled and define behavior for a !/GoodFolder/ pattern; done means the positive-folder example works without listing every excluded folder.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100