Documentation ¶
Overview ¶
Package simple contains a linter for Go source code.
Index ¶
- Variables
- func LintBytesCompare(f *lint.File)
- func LintForTrue(f *lint.File)
- func LintFormatInt(f *lint.File)
- func LintIfBoolCmp(f *lint.File)
- func LintIfReturn(f *lint.File)
- func LintLoopAppend(f *lint.File)
- func LintLoopCopy(f *lint.File)
- func LintRanges(f *lint.File)
- func LintReceiveIntoBlank(f *lint.File)
- func LintRedundantNilCheckWithLen(f *lint.File)
- func LintRegexpRaw(f *lint.File)
- func LintSimplerReturn(f *lint.File)
- func LintSimplerStructConversion(f *lint.File)
- func LintSingleCaseSelect(f *lint.File)
- func LintSlicing(f *lint.File)
- func LintStringsContains(f *lint.File)
- func LintTimeSince(f *lint.File)
- func LintTrim(f *lint.File)
Constants ¶
This section is empty.
Variables ¶
View Source
var Funcs = []lint.Func{ LintLoopCopy, LintIfBoolCmp, LintStringsContains, LintBytesCompare, LintRanges, LintForTrue, LintRegexpRaw, LintIfReturn, LintRedundantNilCheckWithLen, LintSlicing, LintLoopAppend, LintTimeSince, LintSimplerReturn, LintReceiveIntoBlank, LintFormatInt, LintSimplerStructConversion, LintTrim, }
Functions ¶
func LintBytesCompare ¶
func LintForTrue ¶
func LintFormatInt ¶
func LintIfBoolCmp ¶
func LintIfReturn ¶
func LintLoopAppend ¶
func LintLoopCopy ¶
func LintRanges ¶
func LintReceiveIntoBlank ¶
func LintRedundantNilCheckWithLen ¶
LintRedundantNilCheckWithLen checks for the following reduntant nil-checks:
if x == nil || len(x) == 0 {} if x != nil && len(x) != 0 {} if x != nil && len(x) == N {} (where N != 0) if x != nil && len(x) > N {} if x != nil && len(x) >= N {} (where N != 0)
func LintRegexpRaw ¶
func LintSimplerReturn ¶
func LintSingleCaseSelect ¶
func LintSlicing ¶
func LintStringsContains ¶
func LintTimeSince ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.