plugin

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New creates a new regolint plugin instance with validated settings.

Types

type RegolintPlugin

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

RegolintPlugin implements register.LinterPlugin.

func (*RegolintPlugin) BuildAnalyzers

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

BuildAnalyzers returns the regolint analyzer.

func (*RegolintPlugin) GetLoadMode

func (p *RegolintPlugin) GetLoadMode() string

GetLoadMode returns the load mode for the plugin.

type Settings

type Settings struct {
	PolicyDir   string   `json:"policy-dir"`
	PolicyFiles []string `json:"policy-files"`
	Disabled    []string `json:"disabled"`
	Exclude     []string `json:"exclude"`
}

Settings mirrors config options for golangci-lint integration.

Jump to

Keyboard shortcuts

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