godanticlint

package module
v0.0.0-...-2c5892a Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "godanticlint",
	Doc:      "checks that Field{X}() methods correspond to actual struct fields",
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Analyzer is the main analyzer that checks Field{X}() methods correspond to struct fields

Functions

func New

func New(_ any) (register.LinterPlugin, error)

New creates a new plugin instance for golangci-lint

Types

type Plugin

type Plugin struct{}

Plugin implements the golangci-lint plugin interface

func (*Plugin) BuildAnalyzers

func (p *Plugin) BuildAnalyzers() ([]*analysis.Analyzer, error)

BuildAnalyzers returns the analyzers for this plugin

func (*Plugin) GetLoadMode

func (p *Plugin) GetLoadMode() string

GetLoadMode returns the load mode for this plugin

Directories

Path Synopsis
cmd
godanticlint command

Jump to

Keyboard shortcuts

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