types

package
v2.1.6 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIHelp

type CLIHelp struct {
	Enable     string `json:"enable"`
	RunCmdHelp string `json:"help"`
	FmtCmdHelp string `json:"fmtHelp"`
}

type Deprecation

type Deprecation struct {
	Since       string `json:"since,omitempty"`
	Message     string `json:"message,omitempty"`
	Replacement string `json:"replacement,omitempty"`
}

type ExcludeRule

type ExcludeRule struct {
	Linters    []string `json:"linters,omitempty"`
	Path       string   `json:"path,omitempty"`
	PathExcept string   `json:"path-except,omitempty"`
	Text       string   `json:"text,omitempty"`
	Source     string   `json:"source,omitempty"`
}

type LinterWrapper

type LinterWrapper struct {
	Name string `json:"name"` // From linter.
	Desc string `json:"desc"` // From linter.

	Groups map[string]struct{}

	LoadMode packages.LoadMode `json:"loadMode,omitempty"`

	InPresets        []string `json:"inPresets,omitempty"`
	AlternativeNames []string `json:"alternativeNames,omitempty"`

	OriginalURL     string `json:"originalURL,omitempty"`
	Internal        bool   `json:"internal"`
	CanAutoFix      bool   `json:"canAutoFix,omitempty"`
	IsSlow          bool   `json:"isSlow"`
	DoesChangeTypes bool   `json:"doesChangeTypes,omitempty"`

	Since       string       `json:"since,omitempty"`
	Deprecation *Deprecation `json:"deprecation,omitempty"`
}

LinterWrapper same fields but with struct tags. The field Name and Desc are added to have the information about the linter. The field Linter is removed (not serializable).

func (*LinterWrapper) IsDeprecated

func (l *LinterWrapper) IsDeprecated() bool

Jump to

Keyboard shortcuts

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