linters

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 4 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

This section is empty.

Functions

func New

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

Types

type Element

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

type MySettings

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

Jump to

Keyboard shortcuts

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