plugin

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package plugin registers azproviderlint's analyzers as a golangci-lint module plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

Types

type Plugin

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

func (*Plugin) BuildAnalyzers

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

func (*Plugin) GetLoadMode

func (p *Plugin) GetLoadMode() string

type Settings

type Settings struct {
	Enable  []string `json:"enable"`
	Disable []string `json:"disable"`
	// Flags holds rule-specific analyzer flags, keyed by rule then flag name, collected from
	// the settings' rule-name keys.
	Flags map[string]map[string]string `json:"-"`
}

Settings allows rules to be enabled/disabled per-rule from .golangci.yml via linters.settings.custom.azproviderlint.settings. An empty enable list means all rules. Any other top-level key must be a rule name and sets that rule's analyzer flags:

settings:
  enable: [AZS006]
  AZS006:
    ignore-sensitive: true

Jump to

Keyboard shortcuts

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