-
-
Notifications
You must be signed in to change notification settings - Fork 440
Validate config file before using it #491
Copy link
Copy link
Open
Labels
enhancementFunctionality that enhances existing featuresFunctionality that enhances existing featureskeep-unstaleThe issue will not be marked as stale by the stale-botThe issue will not be marked as stale by the stale-bot
Metadata
Metadata
Assignees
Labels
enhancementFunctionality that enhances existing featuresFunctionality that enhances existing featureskeep-unstaleThe issue will not be marked as stale by the stale-botThe issue will not be marked as stale by the stale-bot
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
HTMLHint/src/cli/htmlhint.ts
Line 402 in 1f1f448
configmust be validated and all invalid attributes must be discarded