clean

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(patch domain.Patch, backupExt string) error

Apply writes patch.Updated atomically. backupExt may be empty.

Types

type Planner

type Planner struct {
	Gofmt bool
	NFKC  bool
}

Planner applies strip/normalize replacements from end to start.

func (Planner) CanClean

func (p Planner) CanClean(f domain.Finding) bool

func (Planner) Plan

func (p Planner) Plan(u domain.Unit, findings []domain.Finding) (domain.Patch, error)

Jump to

Keyboard shortcuts

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