Documentation ¶
Index ¶
Constants ¶
View Source
const ( RuleImport = "import" RuleAssign = "assignment" RuleCommentGroup = "comment_group" )
Variables ¶
This section is empty.
Functions ¶
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(patch io.Reader, newFiles []string, 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.