HTMLHint icon indicating copy to clipboard operation
HTMLHint copied to clipboard

No way to ignore files with bin/htmlhint

Open tirithen opened this issue 8 years ago • 4 comments

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.

There is some code at https://github.com/yaniswang/HTMLHint/blob/master/bin/htmlhint#L333 but maybe it's sending the parameters to the walker in a bad format.

tirithen avatar Oct 30 '17 16:10 tirithen

would love to ignore paths

tom-spalding avatar Dec 01 '18 01:12 tom-spalding

Is there any updates for --ignore field yet?

Seems, it only accepts wildcard (**) but not any other patterns

Details:

  • Works - htmlhint --config .htmlhintrc --ignore **
  • Doesn't work: ** htmlhint --config .htmlhintrc --ignore <folder>/** ** htmlhint --config .htmlhintrc --ignore <folder>?

lionkng123 avatar May 13 '20 08:05 lionkng123

We are currently working intensively on the release of version 1.0.0 Please be patient with us and we will work on it later after we have released the first non 0.x version

Shinigami92 avatar Jul 12 '20 09:07 Shinigami92

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

groenroos avatar Apr 07 '22 15:04 groenroos