Documentation ¶
Overview ¶
Package staticcheck contains a linter for Go source code.
Index ¶
- Constants
- func CanBinaryMarshal(j *lint.Job, v Value) bool
- func ConvertedFrom(v Value, typ string) bool
- func ConvertedFromInt(v Value) bool
- func IntValue(v Value, z vrp.Z) bool
- func InvalidUTF8(v Value) bool
- func Pointer(v Value) bool
- func UnbufferedChannel(v Value) bool
- func UniqueStringCutset(v Value) bool
- func ValidHostPort(v Value) bool
- func ValidateRegexp(v Value) error
- func ValidateTimeLayout(v Value) error
- func ValidateURL(v Value) error
- type Argument
- type Call
- type CallCheck
- type Checker
- func (c *Checker) CheckArgOverwritten(j *lint.Job)
- func (c *Checker) CheckBenchmarkN(j *lint.Job)
- func (c *Checker) CheckCanonicalHeaderKey(j *lint.Job)
- func (c *Checker) CheckConcurrentTesting(j *lint.Job)
- func (c *Checker) CheckCyclicFinalizer(j *lint.Job)
- func (c *Checker) CheckDeferInInfiniteLoop(j *lint.Job)
- func (c *Checker) CheckDeferLock(j *lint.Job)
- func (c *Checker) CheckDeprecated(j *lint.Job)
- func (c *Checker) CheckDiffSizeComparison(j *lint.Job)
- func (c *Checker) CheckDoubleNegation(j *lint.Job)
- func (c *Checker) CheckDubiousDeferInChannelRangeLoop(j *lint.Job)
- func (c *Checker) CheckEarlyDefer(j *lint.Job)
- func (c *Checker) CheckEmptyBranch(j *lint.Job)
- func (c *Checker) CheckEmptyCriticalSection(j *lint.Job)
- func (c *Checker) CheckExec(j *lint.Job)
- func (c *Checker) CheckFlagUsage(j *lint.Job)
- func (c *Checker) CheckIneffectiveAppend(j *lint.Job)
- func (c *Checker) CheckIneffectiveCopy(j *lint.Job)
- func (c *Checker) CheckIneffectiveFieldAssignments(j *lint.Job)
- func (c *Checker) CheckIneffectiveLoop(j *lint.Job)
- func (c *Checker) CheckInfiniteEmptyLoop(j *lint.Job)
- func (c *Checker) CheckInfiniteRecursion(j *lint.Job)
- func (c *Checker) CheckLeakyTimeTick(j *lint.Job)
- func (c *Checker) CheckLhsRhsIdentical(j *lint.Job)
- func (c *Checker) CheckLoopCondition(j *lint.Job)
- func (c *Checker) CheckLoopEmptyDefault(j *lint.Job)
- func (c *Checker) CheckMapBytesKey(j *lint.Job)
- func (c *Checker) CheckNaNComparison(j *lint.Job)
- func (c *Checker) CheckNilContext(j *lint.Job)
- func (c *Checker) CheckNilMaps(j *lint.Job)
- func (c *Checker) CheckNonOctalFileMode(j *lint.Job)
- func (c *Checker) CheckPredeterminedBooleanExprs(j *lint.Job)
- func (c *Checker) CheckPureFunctions(j *lint.Job)
- func (c *Checker) CheckRangeStringRunes(j *lint.Job)
- func (c *Checker) CheckRepeatedIfElse(j *lint.Job)
- func (c *Checker) CheckScopedBreak(j *lint.Job)
- func (c *Checker) CheckSeeker(j *lint.Job)
- func (c *Checker) CheckSelfAssignment(j *lint.Job)
- func (c *Checker) CheckSillyBitwiseOps(j *lint.Job)
- func (c *Checker) CheckSliceOutOfBounds(j *lint.Job)
- func (c *Checker) CheckTemplate(j *lint.Job)
- func (c *Checker) CheckTestMainExit(j *lint.Job)
- func (c *Checker) CheckTimeSleepConstant(j *lint.Job)
- func (c *Checker) CheckUnreadVariableValues(j *lint.Job)
- func (c *Checker) CheckUnsafePrintf(j *lint.Job)
- func (c *Checker) CheckUnsignedComparison(j *lint.Job)
- func (c *Checker) CheckUntrappableSignal(j *lint.Job)
- func (c *Checker) CheckWaitgroupAdd(j *lint.Job)
- func (c *Checker) CheckWriterBufferModified(j *lint.Job)
- func (c *Checker) Funcs() map[string]lint.Func
- func (c *Checker) Init(prog *lint.Program)
- type Value
Constants ¶
View Source
const ( MsgInvalidHostPort = "invalid port or service name in host:port pair" MsgInvalidUTF8 = "argument is not a valid UTF-8 encoded string" MsgNonUniqueCutset = "cutset contains duplicate characters" )
Variables ¶
This section is empty.
Functions ¶
func ConvertedFrom ¶
ConvertedFrom reports whether value v was converted from type typ.
func ConvertedFromInt ¶
func InvalidUTF8 ¶
func UnbufferedChannel ¶
func UniqueStringCutset ¶
func ValidHostPort ¶
func ValidateRegexp ¶
func ValidateTimeLayout ¶
func ValidateURL ¶
Types ¶
type Call ¶
type Checker ¶
type Checker struct { CheckGenerated bool // contains filtered or unexported fields }
func NewChecker ¶
func NewChecker() *Checker
func (*Checker) CheckArgOverwritten ¶
func (*Checker) CheckBenchmarkN ¶
func (*Checker) CheckCanonicalHeaderKey ¶
func (*Checker) CheckConcurrentTesting ¶
func (*Checker) CheckCyclicFinalizer ¶
func (*Checker) CheckDeferInInfiniteLoop ¶
func (*Checker) CheckDeferLock ¶
func (*Checker) CheckDeprecated ¶
func (*Checker) CheckDiffSizeComparison ¶
func (*Checker) CheckDoubleNegation ¶
func (*Checker) CheckDubiousDeferInChannelRangeLoop ¶
func (*Checker) CheckEarlyDefer ¶
func (*Checker) CheckEmptyBranch ¶
func (*Checker) CheckEmptyCriticalSection ¶
func (*Checker) CheckFlagUsage ¶
func (*Checker) CheckIneffectiveAppend ¶
func (*Checker) CheckIneffectiveCopy ¶
func (*Checker) CheckIneffectiveFieldAssignments ¶
func (*Checker) CheckIneffectiveLoop ¶
func (*Checker) CheckInfiniteEmptyLoop ¶
func (*Checker) CheckInfiniteRecursion ¶
func (*Checker) CheckLeakyTimeTick ¶
func (*Checker) CheckLhsRhsIdentical ¶
func (*Checker) CheckLoopCondition ¶
func (*Checker) CheckLoopEmptyDefault ¶
func (*Checker) CheckMapBytesKey ¶
func (*Checker) CheckNaNComparison ¶
func (*Checker) CheckNilContext ¶
func (*Checker) CheckNilMaps ¶
func (*Checker) CheckNonOctalFileMode ¶
func (*Checker) CheckPredeterminedBooleanExprs ¶
func (*Checker) CheckPureFunctions ¶
func (*Checker) CheckRangeStringRunes ¶
func (*Checker) CheckRepeatedIfElse ¶
func (*Checker) CheckScopedBreak ¶
func (*Checker) CheckSeeker ¶
func (*Checker) CheckSelfAssignment ¶
func (*Checker) CheckSillyBitwiseOps ¶
func (*Checker) CheckSliceOutOfBounds ¶
func (*Checker) CheckTemplate ¶
func (*Checker) CheckTestMainExit ¶
func (*Checker) CheckTimeSleepConstant ¶
func (*Checker) CheckUnreadVariableValues ¶
func (*Checker) CheckUnsafePrintf ¶
func (*Checker) CheckUnsignedComparison ¶
func (*Checker) CheckUntrappableSignal ¶
func (*Checker) CheckWaitgroupAdd ¶
func (*Checker) CheckWriterBufferModified ¶
Click to show internal directories.
Click to hide internal directories.