Interface: DocumentValidatorOptions
Defined in: packages/cspell-lib/src/lib/textValidation/docValidator.ts:52
Extends
ValidateTextOptions
Properties
configFile?
optionalconfigFile:string
Defined in: packages/cspell-lib/src/lib/textValidation/docValidator.ts:57
Optional path to a configuration file. If given, it will be used instead of searching for a configuration file.
generateSuggestions?
optionalgenerateSuggestions:boolean
Defined in: packages/cspell-lib/src/lib/textValidation/ValidateTextOptions.ts:5
Generate suggestions where there are spelling issues.
Inherited from
ValidateTextOptions.generateSuggestions
noConfigSearch?
optionalnoConfigSearch:boolean
Defined in: packages/cspell-lib/src/lib/textValidation/docValidator.ts:66
Prevents searching for local configuration files
By default the spell checker looks for configuration files
starting at the location of given filename.
If configFile is defined it will still be loaded instead of searching.
false will override the value in settings.noConfigSearch.
Default Value
undefined
numSuggestions?
optionalnumSuggestions:number
Defined in: packages/cspell-lib/src/lib/textValidation/ValidateTextOptions.ts:10
The number of suggestions to generate. The higher the number the longer it takes.
Inherited from
ValidateTextOptions.numSuggestions
resolveImportsRelativeTo?
optionalresolveImportsRelativeTo:string|URL
Defined in: packages/cspell-lib/src/lib/textValidation/docValidator.ts:72
If settings: CSpellUserSettings contains imports, they will be resolved using this path.
If not set, the current working directory will be used.
skipValidation?
optionalskipValidation:boolean
Defined in: packages/cspell-lib/src/lib/textValidation/ValidateTextOptions.ts:20
Skips spell checking the document. Useful for testing and dry runs. It will read the configuration and parse the document.
Inherited from
ValidateTextOptions.skipValidation
validateDirectives?
optionalvalidateDirectives:boolean
Defined in: packages/cspell-lib/src/lib/textValidation/ValidateTextOptions.ts:15
Verify that the in-document directives are correct.
Inherited from
ValidateTextOptions.validateDirectives