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.

G307

Security
Warning

Deferring unsafe method "Close" on type "*os.File"

Learn more

SA9008

Error prone
Warning

Value refers to the result of a failed type assertion and is a zero value, not the value that was being type-asserted.

ST1005

Best practice
Warning

Error string should not be capitalized

U1000

Design
Warning

Unused field.

S1005

Best practice
Warning

Unnecessary assignment to the blank identifier

G108

Security
Warning

Profiling endpoint is automatically exposed on /debug/pprof

revive/var-declaration

Best practice
Warning

should omit type string from declaration of var

G305

Security
Warning

File traversal when extracting zip/tar archive

We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.