facebook pixelCodiga Analysis Go Rules, category best practice
BACK TO LIST

Go rules

Go is a very powerful language that makes you write performant code while having a lot of verification. Still, developers can make issues. Thankfully, the Codiga Static Code Analysis engine checks your Go code and flags the most important issues.

G304

Best practice
Error

Potential file inclusion via variable

Learn more

G402

Best practice
Critical

TLS InsecureSkipVerify set true.

SA1019

Best practice
Error

strings.Title has been deprecated since Go 1.18. Use golang.org/x/text/cases instead.

ST1005

Best practice
Warning

Error string should not be capitalized

S1005

Best practice
Warning

Unnecessary assignment to the blank identifier

G505

Best practice
Error

Weak crypto primitive

revive/var-declaration

Best practice
Warning

should omit type string from declaration of var