analyzer

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "zerolint"
	Doc  = `` /* 144-byte string literal not displayed */

)

Variables

View Source
var (
	// Excludes is a list of types to exclude from the analysis.
	Excludes string //nolint:gochecknoglobals

	// ZeroTrace enables tracing of found zero-sized types.
	ZeroTrace bool //nolint:gochecknoglobals

	// Basic enables basic analysis only.
	Basic bool //nolint:gochecknoglobals

	// Generated enables checking generated files.
	Generated bool //nolint:gochecknoglobals
)
View Source
var Analyzer = &analysis.Analyzer{
	Name:     Name,
	Doc:      Doc,
	Run:      run,
	Requires: []*analysis.Analyzer{inspect.Analyzer},
}

Functions

func ReadExcludes

func ReadExcludes(name string) (set.Set[string], error)

ReadExcludes reads zero-sized types excluded from analysis from a file and returns them as a set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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