# 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:
Flag | Required | Description |
---|---|---|
--path | Yes | The directory to search in, relative to the gopath. Multiple allowed. In form '// or ___/...' |
--locks-only | Yes | Only 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