lint

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	File    string
	Line    int
	Message string
}

Diagnostic is one lint finding.

func File

func File(name, src string) ([]Diagnostic, error)

File parses and lints one PHP source file.

func Paths

func Paths(paths []string) ([]Diagnostic, error)

Paths lints each provided file or directory. Directories are walked for .php and .phpt files.

func (Diagnostic) String

func (d Diagnostic) String() string

Jump to

Keyboard shortcuts

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