phpstan

package
v0.0.0-...-e49a3f0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCancelled = errors.New("cancelled")

Functions

This section is empty.

Types

type Report

type Report struct {
	Totals struct {
		Errors     int
		FileErrors int
	}
	Files map[string]struct {
		Errors   int
		Messages []*ReportMessage
	}
	Errors []any
}

type ReportMessage

type ReportMessage struct {
	Msg       string `json:"message"`
	Ln        int    `json:"line"`
	Ignorable bool
}

func Analyze

func Analyze(
	ctx context.Context,
	executable string,
	path string,
	content []byte,
) ([]*ReportMessage, error)

func AnalyzePath

func AnalyzePath(ctx context.Context, executable string, path string) ([]*ReportMessage, error)

Jump to

Keyboard shortcuts

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