htmlhint / htmlhint/HTMLHint

Validate config file before using it

Open
#491 1 comment 1 reaction 1 assignee View on GitHub

@Shinigami92 is already working on this.

Since Jul 8, 2020.

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.

The configuration file created by the user must be validated to suppress undesirable behavior

Describe the solution you'd like

Introduce a validation function that analyzes/validates the content of the file and returns only the valid configuration object
All invalid attributes are discarded

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#L402

  • config must be validated and all invalid attributes must be discarded

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.