analyzer

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: BSD-3-Clause Imports: 14 Imported by: 3

Documentation

Index

Constants

View Source
const (
	NoInlineCommentsFlag  = "noInlineComments"
	NoPrefixCommentsFlag  = "noPrefixComments"
	SkipGeneratedFlag     = "skipGenerated"
	SectionsFlag          = "Sections"
	SectionSeparatorsFlag = "SectionSeparators"
	SectionDelimiter      = ","
)

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "gci",
	Doc:  "A tool that control Go package import order and make it always deterministic.",
	Run:  runAnalysis,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
		modinfo.Analyzer,
	},
}

Functions

func GetSuggestedFix added in v0.10.0

func GetSuggestedFix(file *token.File, a, b []byte) (*analysis.SuggestedFix, error)

Types

type InvalidNumberOfFilesInAnalysis added in v0.3.0

type InvalidNumberOfFilesInAnalysis struct {
	// contains filtered or unexported fields
}

func (InvalidNumberOfFilesInAnalysis) Error added in v0.3.0

func (InvalidNumberOfFilesInAnalysis) Is added in v0.3.0

Jump to

Keyboard shortcuts

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