Versions in this module Expand all Collapse all v0 v0.4.1 Aug 2, 2022 Changes in this version + const MsgInvalidHostPort + const MsgInvalidUTF8 + const MsgNonUniqueCutset + var Analyzers = lint.InitializeAnalyzers(Docs, map[string]*analysis.Analyzer{ ... }) + var Docs = lint.Markdownify(map[string]*lint.RawDocumentation{ ... }) + func CanBinaryMarshal(pass *analysis.Pass, v Value) bool + func CheckAddressIsNil(pass *analysis.Pass) (interface{}, error) + func CheckAllocationNilCheck(pass *analysis.Pass) (interface{}, error) + func CheckArgOverwritten(pass *analysis.Pass) (interface{}, error) + func CheckBadRemoveAll(pass *analysis.Pass) (interface{}, error) + func CheckBenchmarkN(pass *analysis.Pass) (interface{}, error) + func CheckBuiltinZeroComparison(pass *analysis.Pass) (interface{}, error) + func CheckCanonicalHeaderKey(pass *analysis.Pass) (interface{}, error) + func CheckConcurrentTesting(pass *analysis.Pass) (interface{}, error) + func CheckCyclicFinalizer(pass *analysis.Pass) (interface{}, error) + func CheckDeferInInfiniteLoop(pass *analysis.Pass) (interface{}, error) + func CheckDeferLock(pass *analysis.Pass) (interface{}, error) + func CheckDeprecated(pass *analysis.Pass) (interface{}, error) + func CheckDoubleNegation(pass *analysis.Pass) (interface{}, error) + func CheckDubiousDeferInChannelRangeLoop(pass *analysis.Pass) (interface{}, error) + func CheckDuplicateBuildConstraints(pass *analysis.Pass) (interface{}, error) + func CheckEarlyDefer(pass *analysis.Pass) (interface{}, error) + func CheckEmptyBranch(pass *analysis.Pass) (interface{}, error) + func CheckEmptyCriticalSection(pass *analysis.Pass) (interface{}, error) + func CheckEvenSliceLength(pass *analysis.Pass) (interface{}, error) + func CheckExec(pass *analysis.Pass) (interface{}, error) + func CheckExtremeComparison(pass *analysis.Pass) (interface{}, error) + func CheckImpossibleTypeAssertion(pass *analysis.Pass) (interface{}, error) + func CheckIneffectiveAppend(pass *analysis.Pass) (interface{}, error) + func CheckIneffectiveCopy(pass *analysis.Pass) (interface{}, error) + func CheckIneffectiveFieldAssignments(pass *analysis.Pass) (interface{}, error) + func CheckIneffectiveLoop(pass *analysis.Pass) (interface{}, error) + func CheckIneffectiveRandInt(pass *analysis.Pass) (interface{}, error) + func CheckIneffectiveSort(pass *analysis.Pass) (interface{}, error) + func CheckIneffectiveURLQueryModification(pass *analysis.Pass) (interface{}, error) + func CheckInfiniteEmptyLoop(pass *analysis.Pass) (interface{}, error) + func CheckInfiniteRecursion(pass *analysis.Pass) (interface{}, error) + func CheckIntegerDivisionEqualsZero(pass *analysis.Pass) (interface{}, error) + func CheckLeakyTimeTick(pass *analysis.Pass) (interface{}, error) + func CheckLhsRhsIdentical(pass *analysis.Pass) (interface{}, error) + func CheckLoopCondition(pass *analysis.Pass) (interface{}, error) + func CheckLoopEmptyDefault(pass *analysis.Pass) (interface{}, error) + func CheckMapBytesKey(pass *analysis.Pass) (interface{}, error) + func CheckMaybeNil(pass *analysis.Pass) (interface{}, error) + func CheckMissingEnumTypesInDeclaration(pass *analysis.Pass) (interface{}, error) + func CheckModuloOne(pass *analysis.Pass) (interface{}, error) + func CheckNaNComparison(pass *analysis.Pass) (interface{}, error) + func CheckNegativeZeroFloat(pass *analysis.Pass) (interface{}, error) + func CheckNilContext(pass *analysis.Pass) (interface{}, error) + func CheckNilMaps(pass *analysis.Pass) (interface{}, error) + func CheckNonOctalFileMode(pass *analysis.Pass) (interface{}, error) + func CheckPredeterminedBooleanExprs(pass *analysis.Pass) (interface{}, error) + func CheckPureFunctions(pass *analysis.Pass) (interface{}, error) + func CheckRangeStringRunes(pass *analysis.Pass) (interface{}, error) + func CheckRepeatedIfElse(pass *analysis.Pass) (interface{}, error) + func CheckScopedBreak(pass *analysis.Pass) (interface{}, error) + func CheckSeeker(pass *analysis.Pass) (interface{}, error) + func CheckSelfAssignment(pass *analysis.Pass) (interface{}, error) + func CheckSillyBitwiseOps(pass *analysis.Pass) (interface{}, error) + func CheckSillyRegexp(pass *analysis.Pass) (interface{}, error) + func CheckSingleArgAppend(pass *analysis.Pass) (interface{}, error) + func CheckStaticBitShift(pass *analysis.Pass) (interface{}, error) + func CheckStructTags(pass *analysis.Pass) (interface{}, error) + func CheckTemplate(pass *analysis.Pass) (interface{}, error) + func CheckTestMainExit(pass *analysis.Pass) (interface{}, error) + func CheckTimeSleepConstant(pass *analysis.Pass) (interface{}, error) + func CheckTimerResetReturnValue(pass *analysis.Pass) (interface{}, error) + func CheckToLowerToUpperComparison(pass *analysis.Pass) (interface{}, error) + func CheckTypeAssertionShadowingElse(pass *analysis.Pass) (interface{}, error) + func CheckTypedNilInterface(pass *analysis.Pass) (interface{}, error) + func CheckUnreachableTypeCases(pass *analysis.Pass) (interface{}, error) + func CheckUnreadVariableValues(pass *analysis.Pass) (interface{}, error) + func CheckUnsafePrintf(pass *analysis.Pass) (interface{}, error) + func CheckUntrappableSignal(pass *analysis.Pass) (interface{}, error) + func CheckWaitgroupAdd(pass *analysis.Pass) (interface{}, error) + func CheckWriterBufferModified(pass *analysis.Pass) (interface{}, error) + func ConvertedFrom(v Value, typ string) bool + func ConvertedFromInt(v Value) 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 struct + Value Value + func (arg *Argument) Invalid(msg string) + type Call struct + Args []*Argument + Instr ir.CallInstruction + Parent *ir.Function + Pass *analysis.Pass + func (c *Call) Invalid(msg string) + type CallCheck func(call *Call) + func RepeatZeroTimes(name string, arg int) CallCheck + type Value struct + Value ir.Value