Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
func Diff(left, right *Checkstyle, opt DiffOptions) (*Checkstyle, *Checkstyle)
Diff runs a diff operation on two checkstyle structs and returns two new checkstyle structs of fixed and created errors
Types ¶
type Checkstyle ¶
type Checkstyle struct { XMLName xml.Name `xml:"checkstyle"` Version string `xml:"version,attr"` File Files `xml:"file"` }
Checkstyle <checkstyle /> XML struct as defined by the checkstyle standard
type DiffOptions ¶
type DiffOptions struct {
MaxLineDiff int
}
DiffOptions are the options for the Diff command
type FileError ¶ added in v0.3.0
type FileError struct { Line int `xml:"line,attr"` Severity SeverityLevel `xml:"severity,attr"` Message string `xml:"message,attr"` Source string `xml:"source,attr"` }
FileError <error /> XML struct as defined by the checkstyle standard
type Files ¶ added in v0.3.0
type Files []File
Files is a collection of <file /> XML structs with added helpers
type SeverityLevel ¶
type SeverityLevel string
SeverityLevel as defined by severity levels from https://checkstyle.sourceforge.io/property_types.html#SeverityLevel
const ( SeverityIgnore SeverityLevel = "ignore" SeverityInfo SeverityLevel = "info" SeverityWarning SeverityLevel = "warning" SeverityError SeverityLevel = "error" )
SeverityLevels as defined by the checkstyle standard
Click to show internal directories.
Click to hide internal directories.