Documentation ¶
Overview ¶
staticlint implements set of static checks.
Following checks are included:
1. All checks from golang.org/x/tools/go/analysis/passes
2. All SA checks from https://staticcheck.io/docs/checks/
3. ST1019 check from https://staticcheck.io/docs/checks/#ST1019
4. Check for database query in loops https://github.com/masibw/goone
5. Check wrapping errors https://github.com/fatih/errwrap
6. Check for calling os.Exit in main func of main package
Example:
staticlint -SA1000 <project path>
Perform SA1000 analysis for given project. For more details run:
staticlint -help
exitinmain investigates main package for calling os.Exit from main function. Run this check with following command:
staticlint -exitinmain
Click to show internal directories.
Click to hide internal directories.