gclplugin

package
v0.0.0-...-885be9d Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package gclplugin implements the golangci-lint's module plugin interface for NilAway 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 NilAway analyzer.

Types

type NilAwayPlugin

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

NilAwayPlugin is the NilAway plugin wrapper for golangci-lint.

func (*NilAwayPlugin) BuildAnalyzers

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

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

func (*NilAwayPlugin) GetLoadMode

func (p *NilAwayPlugin) GetLoadMode() string

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

Jump to

Keyboard shortcuts

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