Versions in this module Expand all Collapse all v0 v0.8.6 Jul 6, 2026 v0.8.5 Jul 6, 2026 v0.8.4 Jul 5, 2026 v0.8.3 Jul 5, 2026 v0.8.2 Jul 5, 2026 Changes in this version + const ErrAnalyzer v0.8.1 Jul 2, 2026 v0.8.0 Jul 2, 2026 v0.7.0 Jul 2, 2026 v0.6.0 Jul 2, 2026 Changes in this version + const ErrLoadPackages v0.5.0 Jul 1, 2026 Changes in this version + const ErrVerifyLoad + type Verifier func(patterns []Pattern) (VerifyResult, error) + type VerifyIssue struct + Msg string + Pos string + func (i VerifyIssue) String() string + type VerifyResult struct + Issues []VerifyIssue + func CheckerVerifier(patterns []Pattern) (VerifyResult, error) + func (r VerifyResult) Clean() bool + func (r VerifyResult) Files() int v0.4.0 Jun 29, 2026 Changes in this version + const ErrInvalidSettingValue + type AnalyzerName string + type AnalyzerSettings map[SettingName]SettingValue + type HelpURL string + type Pattern string + type SettingName string + type SettingValue string + type Settings map[AnalyzerName]AnalyzerSettings v0.3.0 Jun 29, 2026 v0.2.0 Jun 29, 2026 Changes in this version + const ErrUnknownSetting + func ApplyConfig(regs []Registration, settings map[string]map[string]string) error v0.1.0 Jun 28, 2026 Changes in this version + const ErrDriver + const ErrEditOutOfBounds + const ErrFormat + const ErrInvalidReport + const ErrMissingAnalyzer + const ErrMissingGroup + const ErrMissingName + const ErrOverlappingEdits + const ErrReadFile + const ErrWriteFile + func ApplyEdits(content []byte, edits []TextEdit) ([]byte, error) + func GoFormat(src []byte) ([]byte, error) + func MarshalReport(r Report) ([]byte, error) + type Category string + type Diagnostic struct + Col int + EndCol int + EndLine int + Fixes []Fix + Line int + Message string + Path string + Rule string + Severity Severity + Tool string + URL string + func ToDiagnostic(fset *token.FileSet, reg Registration, d analysis.Diagnostic) Diagnostic + type Driver func(regs []Registration, patterns []string) (*token.FileSet, []DriverResult, error) + type DriverResult struct + Diagnostics []analysis.Diagnostic + Registration Registration + func CheckerDriver(regs []Registration, patterns []string) (*token.FileSet, []DriverResult, error) + type FileEdit struct + Edits []TextEdit + Path string + type FileReader func(path string) ([]byte, error) + type FileWriter func(path string, data []byte) error + type Fix struct + Description string + Files []FileEdit + type FixResult struct + EditsApplied int + FilesChanged int + func ApplyFixes(read FileReader, write FileWriter, format Formatter, fixes []Fix) (FixResult, error) + type Formatter func(src []byte) ([]byte, error) + type Group string + type Registration struct + Analyzer *analysis.Analyzer + Categories []Category + Group Group + Name string + URL string + func (r Registration) RuleID() string + func (r Registration) Validate() error + type Report struct + Diagnostics []Diagnostic + func Run(driver Driver, regs []Registration, patterns []string) (Report, error) + func UnmarshalReport(data []byte) (Report, error) + type Severity string + const SeverityError + const SeverityInfo + const SeverityWarning + type TextEdit struct + End int + NewText string + Start int