package
1.3.9
Repository: https://github.com/deepsourcecorp/revive.git
Documentation: pkg.go.dev

# Structs

AddConstantRule lints unused params in functions.
ArgumentsLimitRule lints given else constructs.
AtomicRule lints given else constructs.
BannedCharsRule checks if a file contains banned characters.
BareReturnRule lints given else constructs.
BlankImportsRule lints given else constructs.
BoolLiteralRule warns when logic expressions contains Boolean literals.
CallToGCRule lints calls to the garbage collector.
CognitiveComplexityRule lints given else constructs.
CommentsDensityRule lints given else constructs.
CommentSpacingsRule check the whether there is a space between the comment symbol( // ) and the start of the comment text.
ConfusingNamingRule lints method names that differ only by capitalization.
ConfusingResultsRule lints given function declarations.
ConstantLogicalExprRule warns on constant logical expressions.
ContextAsArgumentRule lints given else constructs.
ContextKeysType lints given else constructs.
CyclomaticRule lints given else constructs.
DataRaceRule lints assignments to value method-receivers.
DeepExitRule lints program exit at functions other than main or init.
DeferRule lints unused params in functions.
DotImportsRule lints given else constructs.
DuplicatedImportsRule lints given else constructs.
EarlyReturnRule finds opportunities to reduce nesting by inverting the condition of an "if" block.
EmptyBlockRule lints given else constructs.
EmptyLinesRule lints empty lines in blocks.
EnforceMapStyleRule implements a rule to enforce `make(map[type]type)` over `map[type]type{}`.
EnforceRepeatedArgTypeStyleRule implements a rule to enforce repeated argument type style.
EnforceSliceStyleRule implements a rule to enforce `make([]type)` over `[]type{}`.
ErrorfRule lints given else constructs.
ErrorNamingRule lints given else constructs.
ErrorReturnRule lints given else constructs.
ErrorStringsRule lints given else constructs.
ExportedRule lints given else constructs.
FileHeaderRule lints given else constructs.
FlagParamRule lints given else constructs.
FunctionLength lint.
FunctionResultsLimitRule lints given else constructs.
GetReturnRule lints given else constructs.
IdenticalBranchesRule warns on constant logical expressions.
IfReturnRule lints given else constructs.
ImportAliasNamingRule lints import alias naming.
ImportsBlocklistRule lints given else constructs.
ImportShadowingRule lints given else constructs.
IncrementDecrementRule lints given else constructs.
IndentErrorFlowRule lints given else constructs.
LineLengthLimitRule lints given else constructs.
MaxControlNestingRule lints given else constructs.
MaxPublicStructsRule lints given else constructs.
ModifiesParamRule lints given else constructs.
ModifiesValRecRule lints assignments to value method-receivers.
NestedStructs lints nested structs.
OptimizeOperandsOrderRule lints given else constructs.
PackageCommentsRule lints the package comments.
RangeRule lints given else constructs.
RangeValAddress lints.
RangeValInClosureRule lints given else constructs.
ReceiverNamingRule lints given else constructs.
RedefinesBuiltinIDRule warns when a builtin identifier is shadowed.
RedundantImportAlias lints given else constructs.
StringFormatRule lints strings and/or comments according to a set of regular expressions given as Arguments.
StringOfIntRule warns when logic expressions contains Boolean literals.
StructTagRule lints struct tags.
SuperfluousElseRule lints given else constructs.
TimeEqualRule shows where "==" and "!=" used for equality check time.Time.
TimeNamingRule lints given else constructs.
UncheckedTypeAssertionRule lints missing or ignored `ok`-value in danymic type casts.
UnconditionalRecursionRule lints given else constructs.
UnexportedNamingRule lints wrongly named unexported symbols.
UnexportedReturnRule lints given else constructs.
UnhandledErrorRule lints given else constructs.
UnnecessaryStmtRule warns on unnecessary statements.
UnreachableCodeRule lints unreachable code.
UnusedParamRule lints unused params in functions.
UnusedReceiverRule lints unused params in functions.
UseAnyRule lints given else constructs.
UselessBreak lint rule.
VarDeclarationsRule lints given else constructs.
VarNamingRule lints given else constructs.
WaitGroupByValueRule lints sync.WaitGroup passed by copy in functions.