htmlhint / HTMLHint

⚙️ The static code analysis tool you need for your HTML
https://htmlhint.com
MIT License
3.08k stars 380 forks source link

--ignore does not behave as expected (reopening issue #222) #1349

Open k1eran opened 1 year ago

k1eran commented 1 year ago

Describe the bug Quoting stale issue https://github.com/htmlhint/HTMLHint/issues/222

While there is an option called --ignore it does not seem to have the desired effect. No matter which paths I add files from those directories are still listed with errors.

To Reproduce Steps to reproduce the behavior:

npx htmlhint gui/src/*/.html --ignore="gui/src/assets/help/"

shows issues in gui/src/assets/help/en/some/file that should be hidden

Expected behavior ignore supported as described in docs

Screenshots N/A Desktop (please complete the following information): N/A

Smartphone (please complete the following information): N/A

Additional context See comment from groenroos commented on Apr 7, 2022.

This is still an issue, and should be re-opened. As it is a documented feature, it should also be prevented from going stale.

with 4 likes

hyperupcall commented 10 months ago

A related issue is that the treatment of single argument --ignore is naive with how it interprets the value. It interprets , as a glob separator, but , is used by globs in various expansions: --ignore='.{m,git,hg}ignore'.