Unused parameter in function RVV-B0012 × 3
Nested
if
can be replaced with else if
CRT-A0011 × 1Potential truncation issue CRT-D0020 × 1
Empty string test can be improved CRT-A0004 × 159
Types of function parameters can be combined CRT-A0017 × 5
Function literal can be simplified CRT-A0018 × 1
Call to os.Exit
or log.Fatal
and friends made in function using defer
CRT-D0011
Bug risk
Major
1
Copy of large value inside loop
CRT-P0006
Performance
Major
2
Nested if
can be replaced with else if
CRT-A0011
Anti-pattern
Major
1
Potential truncation issue
CRT-D0020
Bug risk
Major
1
Empty string test can be improved
CRT-A0004
Anti-pattern
Major
159
Function literal can be simplified
CRT-A0018
Anti-pattern
Major
1
Use http.NoBody
instead of nil
in http.NewRequest
calls
GO-R4001
Anti-pattern
Major
1
Unsafe defer of .Close
method
GO-S2307
Security
Major
6
Use (io.StringWriter).WriteString
for writing strings
GO-P4008
Performance
Major
4
Potentially unwanted dependency on evaluation order
GO-W4006
Bug risk
Major
4