Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpgradeConfig ¶
func UpgradeConfig(cfgBytes []byte, factory formatplugin.Factory) ([]byte, error)
Types ¶
type AssetConfig ¶
type AssetConfig struct {
versionedconfig.ConfigWithLegacy `yaml:",inline"`
Args []string `yaml:"args"`
}
type Config ¶
type Config struct {
versionedconfig.ConfigWithLegacy `yaml:",inline"`
// Formatters specifies the configuration used by the formatters. The key is the name of the formatter and the
// value is the custom configuration for that formatter.
Formatters map[string]FormatterConfig `yaml:"formatters"`
// Exclude specifies the files that should be excluded from formatting.
Exclude matcher.NamesPathsCfg `yaml:"exclude"`
}
type FormatterConfig ¶
type FormatterConfig struct {
// Args specifies the command-line arguments that are provided to the formatter.
Args []string `yaml:"args"`
}
Click to show internal directories.
Click to hide internal directories.