lint

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 8 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 FlatstackFile added in v0.2.1

func FlatstackFile(name, src string) (Diagnostic, error)

FlatstackFile checks whether a single PHP source file is compatible with flatstack engine.

func FlatstackPaths added in v0.2.1

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

FlatstackPaths checks flatstack compatibility for all files matched by paths.

func Paths

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

Paths lints each file selected by the provided Go-style path patterns.

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