okteto / okteto

Empty string test can be improved

CRT-A0004
Anti-pattern
Major
a month ago 4 years old
Seen in 1 file
1

Function call can be replaced with helper function

CRT-A0010
Anti-pattern
Major
a month ago 3 years old
Seen in 1 file
1

Empty slice literal used to declare a variable

GO-W1027
Anti-pattern
Minor
10 days ago a year old
Seen in 40 files
69

String concatenation can be simplified

GO-R4003
Anti-pattern
Major
12 days ago 6 months old
Seen in 2 files
2

Use %q to quote a string in fmt.Sprintf format specifiers

GO-R4002
Anti-pattern
Minor
9 days ago 6 months old
Seen in 3 files
3

Function literal can be simplified

CRT-A0018
Anti-pattern
Major
a month ago 5 months old
Seen in 2 files
4

Unnecessary block

CRT-A0008
Anti-pattern
Minor
4 months ago 4 months old
Seen in 1 file
2

Use http.NoBody instead of nil in http.NewRequest calls

GO-R4001
Anti-pattern
Major
4 months ago 4 months old
Seen in 1 file
1

Redundant conversion between string and []byte

CRT-A0007
Anti-pattern
Major
6 months ago 2 years old
Seen in 1 file
1

Potential issue in filepath.Join() function calls

GO-W4001
Anti-pattern
Major
9 days ago 2 years old
Seen in 1 file
1

Exit inside non-main function

RVV-A0003
Anti-pattern
Major
6 months ago 3 years old
Seen in 1 file
1

Function with cyclomatic complexity higher than threshold

GO-R1005
Anti-pattern
Minor
9 days ago 8 months old
Seen in 42 files
65

Importing the same package multiple times

GO-W5021
Anti-pattern
Minor
a month ago 2 years old
Seen in 5 files
5

Exported function returning value of unexported type

RVV-B0011
Anti-pattern
Critical
a month ago 8 months old
Seen in 3 files
4

Unnecessary call to strings.Compare

GO-C4012
Anti-pattern
Minor
10 days ago 5 months old
Seen in 5 files
6

Usage of both value and pointer receivers

GO-W1029
Anti-pattern
Major
10 days ago a year old
Seen in 18 files
76