Help us shape the future of Go! Take the 2026 Go Developer Survey

gclplugin

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package gclplugin implements the golangci-lint's module plugin interface for ErrStack to be used as a private linter in golangci-lint. See more details at https://golangci-lint.run/plugins/module-plugins/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New returns the golangci-lint plugin that wraps the ErrStack analyzer.

Types

type ErrStackPlugin

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

ErrStackPlugin is the ErrStack plugin wrapper for golangci-lint.

func (*ErrStackPlugin) BuildAnalyzers

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

BuildAnalyzers builds the ErrStack analyzer with the configurations applied to the config analyzer.

func (*ErrStackPlugin) GetLoadMode

func (p *ErrStackPlugin) GetLoadMode() string

GetLoadMode returns the load mode of the ErrStack plugin (requiring types info).

Jump to

Keyboard shortcuts

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