golint lints the Go source files named on its command line.
Patterns to include in execution and reports.
Patterns to exclude from execution and reports.
Note: As of now, golint does not keep CRLF line endings and all EOL characters are converted to LF in files where the auto-fix is applied. We will solve this problem, but for the time being, please don't enable the auto-fix feature if you need to keep CRLF line endings.
Below is the list of options that are supported:
-min_confidence float minimum confidence of a problem to print it (default 0.8)
With default options:
inspecode: golint: default
With enabling auto-fixing and default options:
inspecode: golint: auto-fix
With custom machine:
inspecode: golint: machine: cpu: 1.5 # 1.5 CPU, 5760 MiB RAM
With custom options:
inspecode: golint: options: -min_confidence: 1.0
Inspecode may require the build dependencies when fixing golint issues automatically (
auto-fix: true), so Inspecode resolves the dependencies in the same manner as
go test. See the
go test page for the details.