Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Prefix = "pint" IgnoreFileComment = "ignore/file" IgnoreLineComment = "ignore/line" IgnoreBeginComment = "ignore/begin" IgnoreEndComment = "ignore/end" IgnoreNextLineComment = "ignore/next-line" FileOwnerComment = "file/owner" RuleOwnerComment = "rule/owner" FileDisableComment = "file/disable" DisableComment = "disable" FileSnoozeComment = "file/snooze" SnoozeComment = "snooze" RuleSetComment = "rule/set" )
Functions ¶
func IsRuleComment ¶
Types ¶
type Comment ¶
type Comment struct { Value CommentValue Type Type Offset int }
type CommentError ¶ added in v0.53.0
func (CommentError) Error ¶ added in v0.53.0
func (ce CommentError) Error() string
type CommentValue ¶
type CommentValue interface {
String() string
}
type Invalid ¶
type Invalid struct {
Err CommentError
}
type Type ¶
type Type uint8
const ( UnknownType Type = iota InvalidComment IgnoreFileType // ignore/file IgnoreLineType // ignore/line IgnoreBeginType // ignore/begin IgnoreEndType // ignore/end IgnoreNextLineType // ignore/next-line FileOwnerType // file/owner RuleOwnerType // rule/owner FileDisableType // file/disable DisableType // disable FileSnoozeType // file/snooze SnoozeType // snooze RuleSetType // rule/set )
Click to show internal directories.
Click to hide internal directories.