simple

package
v0.0.0-...-a6e9a46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package simple contains a linter for Go source code.

Index

Constants

This section is empty.

Variables

Functions

func LintBytesCompare

func LintBytesCompare(f *lint.File)

func LintForTrue

func LintForTrue(f *lint.File)

func LintFormatInt

func LintFormatInt(f *lint.File)

func LintIfBoolCmp

func LintIfBoolCmp(f *lint.File)

func LintIfReturn

func LintIfReturn(f *lint.File)

func LintLoopAppend

func LintLoopAppend(f *lint.File)

func LintLoopCopy

func LintLoopCopy(f *lint.File)

func LintRanges

func LintRanges(f *lint.File)

func LintReceiveIntoBlank

func LintReceiveIntoBlank(f *lint.File)

func LintRedundantNilCheckWithLen

func LintRedundantNilCheckWithLen(f *lint.File)

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 LintRegexpRaw(f *lint.File)

func LintSimplerReturn

func LintSimplerReturn(f *lint.File)

func LintSimplerStructConversion

func LintSimplerStructConversion(f *lint.File)

func LintSingleCaseSelect

func LintSingleCaseSelect(f *lint.File)

func LintSlicing

func LintSlicing(f *lint.File)

func LintStringsContains

func LintStringsContains(f *lint.File)

func LintTimeSince

func LintTimeSince(f *lint.File)

func LintTrim

func LintTrim(f *lint.File)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL