Skip to content
Christian Bergum Bergersen edited this page Aug 7, 2016 · 1 revision

Rules

Bugs

Map allocated with new()

String() method recursively calling itself

Code Smells

High Cyclomatic Complexity

Races when referencing loop iterator variables in Goroutines

Ignoring Errors

Printing from the fmt package

Statically evaluated conditions

Return statements kills code

Usage of GOTO statements

Empty for and if-else bodies