Documentation ¶
Overview ¶
Package staticcheck contains a linter for Go source code.
Index ¶
- Variables
- func CheckArgOverwritten(f *lint.File)
- func CheckBenchmarkN(f *lint.File)
- func CheckCanonicalHeaderKey(f *lint.File)
- func CheckConcurrentTesting(f *lint.File)
- func CheckCyclicFinalizer(f *lint.File)
- func CheckDeferInInfiniteLoop(f *lint.File)
- func CheckDeferLock(f *lint.File)
- func CheckDiffSizeComparison(f *lint.File)
- func CheckDubiousDeferInChannelRangeLoop(f *lint.File)
- func CheckDubiousSyncPoolPointers(f *lint.File)
- func CheckEarlyDefer(f *lint.File)
- func CheckEmptyCriticalSection(f *lint.File)
- func CheckEncodingBinary(f *lint.File)
- func CheckExec(f *lint.File)
- func CheckIneffecitiveFieldAssignments(f *lint.File)
- func CheckIneffectiveAppend(f *lint.File)
- func CheckIneffectiveCopy(f *lint.File)
- func CheckIneffectiveLoop(f *lint.File)
- func CheckInfiniteEmptyLoop(f *lint.File)
- func CheckInfiniteRecursion(f *lint.File)
- func CheckLhsRhsIdentical(f *lint.File)
- func CheckLoopCondition(f *lint.File)
- func CheckLoopEmptyDefault(f *lint.File)
- func CheckNaNComparison(f *lint.File)
- func CheckNilContext(f *lint.File)
- func CheckNilMaps(f *lint.File)
- func CheckPredeterminedBooleanExprs(f *lint.File)
- func CheckRegexpFindAll(f *lint.File)
- func CheckRegexps(f *lint.File)
- func CheckScopedBreak(f *lint.File)
- func CheckSeeker(f *lint.File)
- func CheckSliceOutOfBounds(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 CheckUTF8Cutset(f *lint.File)
- func CheckUnmarshalPointer(f *lint.File)
- func CheckUnreadVariableValues(f *lint.File)
- func CheckUnsafePrintf(f *lint.File)
- func CheckUnsignedComparison(f *lint.File)
- func CheckWaitgroupAdd(f *lint.File)
- func IsTestMain(f *lint.File, node ast.Node) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Funcs = map[string]lint.Func{ "SA1000": CheckRegexps, "SA1001": CheckTemplate, "SA1002": CheckTimeParse, "SA1003": CheckEncodingBinary, "SA1004": CheckTimeSleepConstant, "SA1005": CheckExec, "SA1006": CheckUnsafePrintf, "SA1007": CheckURLs, "SA1008": CheckCanonicalHeaderKey, "SA1009": nil, "SA1010": CheckRegexpFindAll, "SA1011": CheckUTF8Cutset, "SA1012": CheckNilContext, "SA1013": CheckSeeker, "SA1014": CheckUnmarshalPointer, "SA2000": CheckWaitgroupAdd, "SA2001": CheckEmptyCriticalSection, "SA2002": CheckConcurrentTesting, "SA2003": CheckDeferLock, "SA3000": CheckTestMainExit, "SA3001": CheckBenchmarkN, "SA4000": CheckLhsRhsIdentical, "SA4001": CheckIneffectiveCopy, "SA4002": CheckDiffSizeComparison, "SA4003": CheckUnsignedComparison, "SA4004": CheckIneffectiveLoop, "SA4005": CheckIneffecitiveFieldAssignments, "SA4006": CheckUnreadVariableValues, "SA4007": nil, "SA4008": CheckLoopCondition, "SA4009": CheckArgOverwritten, "SA4010": CheckIneffectiveAppend, "SA4011": CheckScopedBreak, "SA4012": CheckNaNComparison, "SA5000": CheckNilMaps, "SA5001": CheckEarlyDefer, "SA5002": CheckInfiniteEmptyLoop, "SA5003": CheckDeferInInfiniteLoop, "SA5004": CheckLoopEmptyDefault, "SA5005": CheckCyclicFinalizer, "SA5006": CheckSliceOutOfBounds, "SA5007": CheckInfiniteRecursion, "SA9000": CheckDubiousSyncPoolPointers, "SA9001": CheckDubiousDeferInChannelRangeLoop, }
Functions ¶
func CheckArgOverwritten ¶
func CheckBenchmarkN ¶
func CheckCanonicalHeaderKey ¶
func CheckConcurrentTesting ¶
func CheckCyclicFinalizer ¶
func CheckDeferLock ¶
func CheckDiffSizeComparison ¶
func CheckEarlyDefer ¶
func CheckEncodingBinary ¶
func CheckIneffectiveAppend ¶
func CheckIneffectiveCopy ¶
func CheckIneffectiveLoop ¶
func CheckInfiniteEmptyLoop ¶
func CheckInfiniteRecursion ¶
func CheckLhsRhsIdentical ¶
func CheckLoopCondition ¶
func CheckLoopEmptyDefault ¶
func CheckNaNComparison ¶
func CheckNilContext ¶
func CheckNilMaps ¶
func CheckRegexpFindAll ¶
func CheckRegexps ¶
func CheckScopedBreak ¶
func CheckSeeker ¶
func CheckSliceOutOfBounds ¶
func CheckTemplate ¶
func CheckTestMainExit ¶
func CheckTimeParse ¶
func CheckTimeSleepConstant ¶
func CheckUTF8Cutset ¶
func CheckUnmarshalPointer ¶
func CheckUnsafePrintf ¶
func CheckUnsignedComparison ¶
func CheckWaitgroupAdd ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
staticcheck
staticcheck statically checks arguments to certain functions
|
staticcheck statically checks arguments to certain functions |
Click to show internal directories.
Click to hide internal directories.