Documentation
¶
Index ¶
Constants ¶
View Source
const (
// MaxLineLength is the maximum length of a line displayed in error messages
MaxLineLength = 200
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter handles violation reporting with pretty formatting
func (*Reporter) ReportViolation ¶
func (*Reporter) ReportViolations ¶
type Violation ¶
type Violation interface {
// GetCode returns the error code for this violation
GetCode() string
// GetPos returns the position of the violation
GetPos() token.Pos
// GetMessage returns the main error message without formatting
GetMessage() string
}
Violation represents a generic violation interface All violation types should implement this interface
Click to show internal directories.
Click to hide internal directories.