fixer

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixResult

type FixResult struct {
	File    string `json:"file"`
	Line    int    `json:"line"`
	Rule    string `json:"rule"`
	Message string `json:"message"`
	Fix     string `json:"fix"`
	Applied bool   `json:"applied"`
}

type Fixer

type Fixer struct {
	DryRun      bool
	Interactive bool
	Fixed       int
	Skipped     int
	Errors      int
}

func New

func New() *Fixer

func (*Fixer) ApplyFindings

func (f *Fixer) ApplyFindings(findings []types.Finding, sourceDir string) ([]FixResult, error)

func (*Fixer) ApplyResultFile

func (f *Fixer) ApplyResultFile(resultPath string, sourceDir string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL