internal

package
v1.57.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 14 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 ExtractIssuesFromPatch

func ExtractIssuesFromPatch(patch string, lintCtx *linter.Context, linterName string, formatter fmtTextFormatter) ([]result.Issue, error)

func FormatCode

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

func GetFileNames

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

func GetGoVersion

func GetGoVersion(settings *config.StaticCheckSettings) string

func SetAnalyzerGoVersion

func SetAnalyzerGoVersion(a *analysis.Analyzer, goVersion string)

func SetupStaticCheckAnalyzers

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

func StaticCheckConfig

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

Types

type Change

type Change struct {
	LineRange   result.Range
	Replacement result.Replacement
}

Jump to

Keyboard shortcuts

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