internal

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlaceholderBasePath = "${base-path}"
	// Deprecated: it must be removed in v2.
	// [PlaceholderBasePath] will be the only one placeholder as it is a dynamic value based on
	// [github.com/golangci/golangci-lint/pkg/config.Run.RelativePathMode].
	PlaceholderConfigDir = "${configDir}"
)

Placeholders used inside linters to evaluate relative paths.

Variables

LinterLogger must be use only when the context logger is not available.

Functions

func FormatCode

func FormatCode(code string, _ *config.Config) string

func GetGoFileNames added in v1.63.4

func GetGoFileNames(pass *analysis.Pass) []string

func SetupStaticCheckAnalyzers

func SetupStaticCheckAnalyzers(src []*lint.Analyzer, checks []string) []*analysis.Analyzer

func StaticCheckConfig

func StaticCheckConfig(settings *config.StaticCheckSettings) *scconfig.Config

Types

This section is empty.

Jump to

Keyboard shortcuts

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