Skip to content

Validate config file before using it #491

@Shinigami92

Description

@Shinigami92

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


ruleset = JSON.parse(stripJsonComments(config))

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

Metadata

Metadata

Assignees

Labels

enhancementFunctionality that enhances existing featureskeep-unstaleThe issue will not be marked as stale by the stale-bot

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions