htmlhint / htmlhint/HTMLHint

No way to ignore files with bin/htmlhint

Open
#222 4 comments 15 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug keep-unstale triage
Dominant language
JavaScript
Stars
3.3k
Forks
474
Avg merge
1d 11h
Merged PRs (30d)
12

Description

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.

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 in bin/htmlhint around line 333, then inspect how the --ignore paths are passed to the walker. Reproduce the issue with files in an ignored directory and verify that those files no longer appear in the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.