legacy

package
v1.63.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL