config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Loader = &analysis.Analyzer{
	Name:       name,
	Doc:        doc,
	Run:        run,
	Requires:   []*analysis.Analyzer{},
	ResultType: reflect.TypeOf((*Config)(nil)),
}

Functions

This section is empty.

Types

type AnalyzerSettings

type AnalyzerSettings struct {
	Ifacenames  Ifacenames  `yaml:"ifacenames"`
	Mixedcaps   Mixedcaps   `yaml:"mixedcaps"`
	Pkgnames    Pkgnames    `yaml:"pkgnames"`
	Recvnames   Recvnames   `yaml:"recvnames"`
	Underscores Underscores `yaml:"underscores"`
}

type Analyzers

type Analyzers struct {
	Disable []string `yaml:"disable"`
}

type Config

type Config struct {
	Analyzers        Analyzers        `yaml:"analyzers"`
	AnalyzerSettings AnalyzerSettings `yaml:"analyzer-settings"`
	// contains filtered or unexported fields
}

func Load

func Load(pass *analysis.Pass) (*Config, error)

func (*Config) IsDisabled

func (c *Config) IsDisabled(name string) bool

type Ifacenames

type Ifacenames struct {
	All              bool `yaml:"all"`
	IncludeGenerated bool `yaml:"include-generated"`
}

type Mixedcaps

type Mixedcaps struct {
	Exclude          []string `yaml:"exclude"`
	IncludeGenerated bool     `yaml:"include-generated"`
}

type Pkgnames

type Pkgnames struct {
	IncludeGenerated bool `yaml:"include-generated"`
}

type Recvnames

type Recvnames struct {
	IncludeGenerated bool `yaml:"include-generated"`
}

type Underscores

type Underscores struct {
	Exclude          []string `yaml:"exclude"`
	IncludeGenerated bool     `yaml:"include-generated"`
}

Jump to

Keyboard shortcuts

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