htmlhint / htmlhint/HTMLHint

Validate CLI user input

Open
#490 0 comments 0 reactions 1 assignee View on GitHub

@Shinigami92 is already working on this.

Since Jul 8, 2020.

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

Description

Is your feature request related to a problem? Please describe.

No user-entered values are currently being checked or validated during parsing
This can lead to undesirable behavior

Describe the solution you'd like

Check user input that can be passed via CLI options

Additional context

While working on #489 several problems were found and some TODOs were added


https://github.com/htmlhint/HTMLHint/blob/1f1f448c437ca449e8afb8f62d12ea4faef765e8/src/cli/htmlhint.ts#L100-L101

  • rulesdir needs to be a valid string and path
  • rules needs to be a valid string and must be parsed to ruleset
  • config needs to be a valid string and path

all values are optional

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.