htmlhint / htmlhint/HTMLHint

Allow negation ! for --ignore

Open
#1,339 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

keep-unstale
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.