package
74.0.2+incompatible
Repository: https://github.com/cloudfoundry/loggregator-release.git
Documentation: pkg.go.dev

# README

Linter

The linter searches the codebase for code that has been identified as bad patterns.

Usage

    go run cmd/linter/main.go [--locks-only=<true|false>]
--path=<path/subpath|path/...>...

The output contains the pattern matched, the file/line number/column and a snippet of the code surrounding the matched pattern.

The flags that can be passed to the linter are:

FlagRequiredDescription
--pathYesThe directory to search in, relative to the gopath. Multiple allowed. In form '// or ___/...'
--locks-onlyYesOnly output matched patterns that include locks

# Packages

No description provided by the author

# Functions

CheckFuncs returns where there are problems given a set of potentially bad function declarations.
No description provided by the author
FuncDecls returns all the function declarations in a file.
No description provided by the author

# Structs

Problem represents a problem found in the source code.