Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level int
Level represents the severity of a lint diagnostic.
type LinterSettings ¶
type LinterSettings struct {
Impact *Level
}
LinterSettings holds the configured severity for an entire linter.
func (*LinterSettings) SetLevel ¶
func (s *LinterSettings) SetLevel(level string)
SetLevel parses level and stores it as the linter's impact severity, defaulting to Error when level is empty.
type RuleSettings ¶
type RuleSettings struct {
Impact *Level
}
RuleSettings holds the configured severity for an individual rule.
func (*RuleSettings) SetLevel ¶
func (s *RuleSettings) SetLevel(level string, fallback *Level)
SetLevel parses level or, if empty, fallback and stores the result as the rule's impact severity, defaulting to Error when both are empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
linters
|
|
|
icon
Package icon validates package-icon content (format, size, dimensions).
|
Package icon validates package-icon content (format, size, dimensions). |
|
oss
Package oss validates optional oss.yaml package metadata.
|
Package oss validates optional oss.yaml package metadata. |
Click to show internal directories.
Click to hide internal directories.