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.
Amount of CPU. The default machine has
0.75 CPU with
2880 MiB RAM.
Below is the list of options that are supported:
-min_confidence float minimum confidence of a problem to print it (default 0.8)
No tool specific severity levels are available.
Note: The incremental analysis is disabled if external dependencies are required. See Resolving Dependencies about how the dependencies are resolved.
No tool specific experimental options are available.
With default options:
inspecode: tools: golint: default
With enabling auto-fixing and default options:
inspecode: tools: golint: auto-fix
With custom machine:
inspecode: tools: golint: machine: cpu: 1.5 # 1.5 CPU, 5760 MiB RAM
With custom options:
inspecode: tools: 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.