golint
Golint is a linter for Go source code. https://github.com/golang/lint
Options
exclude
(optional) Exclude certain files. Usesgrep -ve
to do the exclude.threshold-warn
(optional) Number of lints which outputs as warning. default: 5threshold-fail
(optional) Number of lints to allow. default: 10
Examples
build:
steps:
- golint
Using an exclude filter:
build:
steps:
- golint:
exclude: "\.pb\.go"
License
The MIT License (MIT)
Changelog
1.3.0
- Add configurable warn, and fail levels
1.2.0
- Add support for excluding files.
1.1.0
- Do not report on zero issues.
1.0.0
- Initial release.