Documentation
¶
Overview ¶
Package staticcheck contains a linter for Go source code.
Index ¶
- Variables
- func CheckDeferInInfiniteLoop(f *lint.File)
- func CheckDiffSizeComparison(f *lint.File)
- func CheckDubiousDeferInChannelRangeLoop(f *lint.File)
- func CheckEarlyDefer(f *lint.File)
- func CheckEmptyCriticalSection(f *lint.File)
- func CheckEncodingBinary(f *lint.File)
- func CheckExec(f *lint.File)
- func CheckIneffectiveCopy(f *lint.File)
- func CheckInfiniteEmptyLoop(f *lint.File)
- func CheckLhsRhsIdentical(f *lint.File)
- func CheckLoopEmptyDefault(f *lint.File)
- func CheckRegexps(f *lint.File)
- func CheckScopedBreak(f *lint.File)
- func CheckTemplate(f *lint.File)
- func CheckTestMainExit(f *lint.File)
- func CheckTimeParse(f *lint.File)
- func CheckTimeSleepConstant(f *lint.File)
- func CheckURLs(f *lint.File)
- func CheckUnsafePrintf(f *lint.File)
- func CheckWaitgroupAdd(f *lint.File)
- func CheckWaitgroupCopy(f *lint.File)
- func IsTestMain(f *lint.File, node ast.Node) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var DubiousFuncs = []lint.Func{ CheckDubiousDeferInChannelRangeLoop, }
View Source
var Funcs = []lint.Func{ CheckRegexps, CheckTemplate, CheckTimeParse, CheckEncodingBinary, CheckTimeSleepConstant, CheckWaitgroupAdd, CheckWaitgroupCopy, CheckInfiniteEmptyLoop, CheckDeferInInfiniteLoop, CheckTestMainExit, CheckExec, CheckLoopEmptyDefault, CheckLhsRhsIdentical, CheckScopedBreak, CheckUnsafePrintf, CheckURLs, CheckEarlyDefer, CheckEmptyCriticalSection, CheckIneffectiveCopy, CheckDiffSizeComparison, }
Functions ¶
func CheckDiffSizeComparison ¶
func CheckEarlyDefer ¶
func CheckEncodingBinary ¶
func CheckIneffectiveCopy ¶
func CheckInfiniteEmptyLoop ¶
func CheckLhsRhsIdentical ¶
func CheckLoopEmptyDefault ¶
func CheckRegexps ¶
func CheckScopedBreak ¶
func CheckTemplate ¶
func CheckTestMainExit ¶
func CheckTimeParse ¶
func CheckTimeSleepConstant ¶
func CheckUnsafePrintf ¶
func CheckWaitgroupAdd ¶
func CheckWaitgroupCopy ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
staticcheck
command
staticcheck statically checks arguments to certain functions
|
staticcheck statically checks arguments to certain functions |
Click to show internal directories.
Click to hide internal directories.