Function call can be replaced with helper function

CRT-A0010
Anti-pattern
Major
5 months ago 3 years old
Seen in 9 files
13

Found manual trimming of string

SCC-S1017
Anti-pattern
Major
5 months ago 3 years old
Seen in 1 file
1

Unnecessary dereference expressions

GO-R4004
Anti-pattern
Major
5 months ago 2 years old
Seen in 1 file
3

Nested if can be replaced with else if

CRT-A0011
Anti-pattern
Major
5 months ago 3 years old
Seen in 5 files
5

Simplify if statement for single bool judgment

GO-R1004
Anti-pattern
Minor
5 months ago a year old
Seen in 3 files
6

Simplify regular expression by using raw string literal

SCC-S1007
Anti-pattern
Major
5 months ago 3 years old
Seen in 1 file
1

Empty slice literal used to declare a variable

GO-W1027
Anti-pattern
Minor
5 months ago a year old
Seen in 7 files
9

Found empty body in an if or else branch

SCC-SA9003
Anti-pattern
Minor
5 months ago 3 years old
Seen in 1 file
1

Found unnecessary multiple type assertion

SCC-S1034
Anti-pattern
Major
5 months ago 3 years old
Seen in 3 files
4

Simplify make call by omitting redundant arguments

SCC-S1019
Anti-pattern
Major
5 months ago 3 years old
Seen in 1 file
1

Redundant else-blocks can be eliminated

RVV-A0009
Anti-pattern
Major
5 months ago 3 years old
Seen in 6 files
6

Function with cyclomatic complexity higher than threshold

GO-R1005
Anti-pattern
Minor
5 months ago 8 months old
Seen in 42 files
67

switch with single case can be rewritten as if or if-else

CRT-A0014
Anti-pattern
Minor
5 months ago 3 years old
Seen in 4 files
6

context.Context should be the first param

RVV-A0002
Anti-pattern
Minor
5 months ago 3 years old
Seen in 2 files
2

Exported function returning value of unexported type

RVV-B0011
Anti-pattern
Critical
5 months ago 3 years old
Seen in 2 files
10

Exit inside non-main function

RVV-A0003
Anti-pattern
Major
5 months ago 3 years old
Seen in 6 files
17

Functions prefixed with Get should return a value

RVV-A0006
Anti-pattern
Major
5 months ago 3 years old
Seen in 3 files
11

Using a deprecated function, variable, constant or field

GO-W1009
Anti-pattern
Major
5 months ago a year old
Seen in 4 files
12

Usage of both value and pointer receivers

GO-W1029
Anti-pattern
Major
5 months ago a year old
Seen in 8 files
184