Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileResults ¶
FileResults contains all the Results for the file
func (FileResults) Len ¶ added in v0.1.2
func (fr FileResults) Len() int
Len is part of sort.Interface
func (FileResults) Less ¶ added in v0.1.2
func (fr FileResults) Less(i, j int) bool
Less is part of sort.Interface
func (*FileResults) String ¶
func (fr *FileResults) String() string
func (FileResults) Swap ¶ added in v0.1.2
func (fr FileResults) Swap(i, j int)
Swap is part of sort.Interface
type Result ¶
type Result struct {
Rule *rule.Rule
Violation string
Line string
StartPosition *token.Position
EndPosition *token.Position
}
Result contains data about the result of a broken rule
func FindResults ¶
FindResults returns the results that match the rule for the given text. filename and line are only used for the Position
Click to show internal directories.
Click to hide internal directories.