Documentation
¶
Index ¶
Constants ¶
View Source
const ( RuleImport = "import" RuleAssign = "assignment" RuleCommentGroup = "comment_group" )
Variables ¶
This section is empty.
Functions ¶
func NewRevisionChecker ¶ added in v0.1.2
NewRevisionChecker builds a revgrep checker for the given revision range and loads the underlying git patch.
Types ¶
type Requirement ¶
type Rule ¶
type Rule struct {
Name, Type string
Require Requirement
}
type Violation ¶
type Violations ¶
type Violations struct {
Violations []*Violation
}
func FilterByRevision ¶
func FilterByRevision(c *revgrep.Checker, vs *Violations) (*Violations, error)
similar to golangci-lint, use revgrep to determine what commit a change came from.
func (*Violations) Error ¶
func (e *Violations) Error() string
Click to show internal directories.
Click to hide internal directories.