example

package module
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

README

This is an example linter that can be used as a plugin for golangci-lint.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "todo",
	Doc:  "finds todos without author",
	Run:  run,
}

Functions

func New

func New(settings any) ([]*analysis.Analyzer, error)

func NewPlugin added in v0.2.3

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

Types

type Element added in v0.2.1

type Element struct {
	Name string `json:"name"`
}

type MySettings added in v0.2.1

type MySettings struct {
	One   string    `json:"one"`
	Two   []Element `json:"two"`
	Three Element   `json:"three"`
}

type PluginExample

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

func (*PluginExample) BuildAnalyzers

func (f *PluginExample) BuildAnalyzers() ([]*analysis.Analyzer, error)

func (*PluginExample) GetLoadMode

func (f *PluginExample) GetLoadMode() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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