internal

package
v1.63.4 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func ExtractDiagnosticFromPatch added in v1.63.0

func ExtractDiagnosticFromPatch(
	pass *analysis.Pass,
	file *ast.File,
	patch string,
	lintCtx *linter.Context,
) error

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

type Change

type Change struct {
	From, To int
	NewLines []string
}

Jump to

Keyboard shortcuts

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