Skip to content

Validate CLI user input #490

Open
@Shinigami92

Description

@Shinigami92

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


rulesdir: program.rulesdir,
ruleset: program.rules,

  • 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

Metadata

Metadata

Assignees

Labels

cliRelates to HTMLHint's command-line interfaceenhancementFunctionality that enhances existing featureskeep-unstaleThe issue will not be marked as stale by the stale-bot

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions