Configuration File
Creating a Config File
Section titled “Creating a Config File”Run --init to scaffold a default config:
md-go-validator --initThis creates .md-go-validator.yaml in the current directory.
Config File Format
Section titled “Config File Format”languages: - go - typescriptexclude: - "vendor/*" - "node_modules/**"skipDirectives: - "<!-- sketch -->"format: tableFields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
languages |
list | Languages to validate (identifiers from Supported Languages) |
exclude |
list | Glob patterns to exclude (supports **) |
skipDirectives |
list | Custom skip directives in addition to the built-in ones |
format |
string | Default output format |
Auto-Discovery
Section titled “Auto-Discovery”By default, md-go-validator looks for .md-go-validator.yaml in the current working directory. Use --config to specify a custom path:
md-go-validator --config /path/to/config.yaml .CLI Override
Section titled “CLI Override”CLI flags always override config file values. This lets you set defaults in the config file and override per-invocation:
# Config sets format: table, override to JSONmd-go-validator -f json .See Also
Section titled “See Also”- CLI Options for all flags
- Skip Directives for built-in and custom directives
- Supported Languages for language identifiers