Documentation
¶
Index ¶
Constants ¶
View Source
const FileName = ".cfv.toml"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CSVOptions ¶
type CSVOptions struct {
Delimiter *string `toml:"delimiter"`
Comment *string `toml:"comment"`
LazyQuotes *bool `toml:"lazy-quotes"`
}
CSVOptions configures the CSV validator.
type Config ¶
type Config struct {
ExcludeDirs []string `toml:"exclude-dirs"`
ExcludeFileTypes []string `toml:"exclude-file-types"`
FileTypes []string `toml:"file-types"`
Depth *int `toml:"depth"`
Reporter []string `toml:"reporter"`
GroupBy []string `toml:"groupby"`
Quiet *bool `toml:"quiet"`
RequireSchema *bool `toml:"require-schema"`
NoSchema *bool `toml:"no-schema"`
SchemaStore *bool `toml:"schemastore"`
SchemaStorePath *string `toml:"schemastore-path"`
Globbing *bool `toml:"globbing"`
Gitignore *bool `toml:"gitignore"`
SchemaMap map[string]string `toml:"schema-map"`
TypeMap map[string]string `toml:"type-map"`
Validators ValidatorOptions `toml:"validators"`
}
Config represents the parsed .cfv.toml configuration file.
type INIOptions ¶
type INIOptions struct {
ForbidDuplicateKeys *bool `toml:"forbid-duplicate-keys"`
}
INIOptions configures the INI validator.
type JSONOptions ¶
type JSONOptions struct {
ForbidDuplicateKeys *bool `toml:"forbid-duplicate-keys"`
}
JSONOptions configures the JSON validator.
type ValidatorOptions ¶
type ValidatorOptions struct {
CSV *CSVOptions `toml:"csv"`
JSON *JSONOptions `toml:"json"`
INI *INIOptions `toml:"ini"`
}
ValidatorOptions holds per-validator configuration.
Click to show internal directories.
Click to hide internal directories.