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.

G103

Security
Error

Use of unsafe calls should be audited.

Learn more

G306

Security
Error

Expect WriteFile permissions to be 0600 or less

G307

Security
Warning

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

G401

Security
Error

Use of weak cryptographic primitive

G501

Security
Error

Blocklisted import crypto/md5: weak cryptographic primitive

G204

Security
Error

Subprocess launched with variable

G302

Security
Error

Expect file permissions to be 0600 or less

G101

Security
Critical

Hardcoded credentials

G104

Security
Error

Audit errors not checked

G107

Security
Error

Url provided to HTTP request as taint input

G201

Security
Critical

SQL query construction using format string/string concatenation

G202

Security
Critical

SQL query construction using format string/string concatenation

G108

Security
Warning

Profiling endpoint is automatically exposed on /debug/pprof

G301

Security
Error

Expect directory permissions to be 0750 or less

G502

Security
Error

Blocklisted import crypto/des: weak cryptographic primitive

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.