Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HasApply ¶
type HasApply interface { // Apply applies the rule to the proto. Apply(proto *parser.Proto) ([]report.Failure, error) }
HasApply represents a rule which can be applied.
type HasID ¶
type HasID interface { // ID returns the ID of this rule. This should be all UPPER_SNAKE_CASE. ID() string }
HasID represents a rule with ID.
type HasIsOfficial ¶
type HasIsOfficial interface { // IsOfficial decides whether or not this rule belongs to the official guide. IsOfficial() bool }
HasIsOfficial represents a rule with IsOfficial.
type HasPurpose ¶
type HasPurpose interface { // Purpose returns the purpose of this rule. This should be a human-readable string. Purpose() string }
HasPurpose represents a rule with Purpose.
type HasSeverity ¶ added in v0.45.0
type HasSeverity interface { // Severity returns the selected severity of a rule Severity() Severity }
HasSeverity represents a rule with a configurable severity
type Rule ¶
type Rule interface { HasApply HasID HasPurpose HasIsOfficial HasSeverity }
Rule represents a rule which a linter can apply.
Click to show internal directories.
Click to hide internal directories.