Add support for configuration
Initially a gherkinlinter.enable
(or similar) flag to enable/disable linting would satisfy this feature request.
This could then lead into allowing users to set other values (once corresponding functionality is implemented) like:
-
workingDirectories
: indicate what folders/directories to include when linting -
runType
: option to have the linter runonSave
(default, current behavior) oronType
-
autoFix
: enable/disable (disabled by default) auto fixing of errors -
rules
: include custom linting rules, with support for something like"gherkinlinter.rules": { "config": "C:\mydirectory\gherkin-rules.json" }
to specify a file to load in (could be cross-compatible with how we plan to allow custom rules configuration inFeatureLint
proper)