rules

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule interface {
	ID() string
	Description() string
	Apply(pkg *packages.Package, file *ast.File, fset *token.FileSet) ([]byte, error)
}

Rule defines a single rule to be applied.

func GetRulesUpTo

func GetRulesUpTo(v *version.Version) ([]Rule, error)

GetRulesUpTo returns all rules for versions up to and including the specified version.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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