Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fixer ¶
type Fixer struct {
// contains filtered or unexported fields
}
func (*Fixer) Fix ¶
func (f *Fixer) Fix(ctx context.Context, l *linter.Linter, fp fileprovider.FileProvider) (*Report, error)
func (*Fixer) RegisterFixes ¶
type PrettyReporter ¶
type PrettyReporter struct {
// contains filtered or unexported fields
}
PrettyReporter outputs a fix report in a human-readable format.
func NewPrettyReporter ¶
func NewPrettyReporter(outputWriter io.Writer) *PrettyReporter
func (*PrettyReporter) Report ¶
func (r *PrettyReporter) Report(fixReport *Report) error
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
Report contains updated file contents and summary information about the fixes that were applied during a fix operation.
func (*Report) FixedFiles ¶
func (*Report) FixedViolationsForFile ¶
func (*Report) SetFileFixedViolation ¶
func (*Report) TotalFixes ¶
Click to show internal directories.
Click to hide internal directories.