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:"defaultEnabledLinters"`
RootCmdHelp string `json:"rootOutput"`
RunCmdHelp string `json:"runOutput"`
LintersCmdHelp string `json:"lintersOutput"`
FmtCmdHelp string `json:"fmtOutput"`
FormattersCmdHelp string `json:"formattersOutput"`
HelpCmdHelp string `json:"helpOutput"`
MigrateCmdHelp string `json:"migrateOutput"`
ConfigCmdHelp string `json:"configOutput"`
CustomCmdHelp string `json:"customOutput"`
CacheCmdHelp string `json:"cacheOutput"`
VersionCmdHelp string `json:"versionOutput"`
CompletionCmdHelp string `json:"completionOutput"`
}
type Deprecation ¶
type ExcludeRule ¶
type LinterWrapper ¶
type LinterWrapper struct {
Name string `json:"name"` // From linter.
Desc string `json:"desc"` // From linter.
Groups []string `json:"groups,omitempty"`
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
Click to show internal directories.
Click to hide internal directories.