Documentation
¶
Overview ¶
Package linter provides linter and formatter commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EslintMessage ¶
type EslintResult ¶
type EslintResult struct {
FilePath string `json:"filePath"`
Messages []EslintMessage `json:"messages"`
ErrorCount int `json:"errorCount"`
WarningCount int `json:"warningCount"`
}
type PylintDiagnostic ¶
type RubocopFile ¶
type RubocopFile struct {
Path string `json:"path"`
Offenses []RubocopOffense `json:"offenses"`
}
type RubocopLocation ¶
type RubocopLocation struct {
StartLine int `json:"start_line"`
}
type RubocopOffense ¶
type RubocopOffense struct {
CopName string `json:"cop_name"`
Severity string `json:"severity"`
Message string `json:"message"`
Correctable bool `json:"correctable"`
Location RubocopLocation `json:"location"`
}
type RubocopOutput ¶
type RubocopOutput struct {
Files []RubocopFile `json:"files"`
Summary RubocopSummary `json:"summary"`
}
type RubocopSummary ¶
type RuffDiagnostic ¶
type RuffDiagnostic struct {
Code string `json:"code"`
Message string `json:"message"`
Location RuffLocation `json:"location"`
Filename string `json:"filename"`
Fix *RuffFix `json:"fix"`
}
type RuffLocation ¶
Click to show internal directories.
Click to hide internal directories.