Help us shape the future of Go! Take the 2026 Go Developer Survey

lint

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "Lint php scripts"

Name is the command title.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(_ *config.Config, globals *flags.Options) *cli.Command

NewCommand creates a new lint command. The file --include names is what puts the application's own classes and functions in the name registry, so the same flag that makes a request find them makes the checks know them. The configuration is what every command constructor takes, so one signature covers all of them. This command reads it through globals, which main fills from the configuration before any command is built.

func Run

func Run(args []string, opts Options) error

Run lints files or directories and reports diagnostics.

Types

type Options added in v0.3.3

type Options struct {
	Flatstack bool
	Include   string
	Output    string
}

Options holds CLI flag options for the lint command.

Jump to

Keyboard shortcuts

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