fakeloader

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(srcPath string, old any) error

Load is used to keep case of configuration. Viper serialize raw map keys in lowercase, this is a problem with the configuration of some linters.

Types

type Config

type Config struct {
	Version string `mapstructure:"version"`
	// contains filtered or unexported fields
}

Config implements config.BaseConfig. This only the stub for the real file loader.

func NewConfig

func NewConfig() *Config

func (*Config) IsInternalTest

func (*Config) IsInternalTest() bool

func (*Config) SetConfigDir

func (c *Config) SetConfigDir(dir string)

SetConfigDir sets the path to directory that contains golangci-lint config file.

Jump to

Keyboard shortcuts

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