Port codebase to golang #100
26 issues fixed. 9 issues found.
Annotations
Check notice on line 182 in pkg/cod/constant.go
codefactor-io / CodeFactor
pkg/cod/constant.go#L182
Switch with only one case can be replaced by an if-then (unnecessary-stmt)
Check notice on line 144 in pkg/cod/parser.go
codefactor-io / CodeFactor
pkg/cod/parser.go#L8-L144
Complex Method
Check notice on line 328 in pkg/cod/constant.go
codefactor-io / CodeFactor
pkg/cod/constant.go#L142-L328
Complex Method
Check notice on line 150 in pkg/cod/array.go
codefactor-io / CodeFactor
pkg/cod/array.go#L50-L150
Complex Method
Check notice on line 264 in pkg/cod/variable.go
codefactor-io / CodeFactor
pkg/cod/variable.go#L264
If block ends with a return statement, so drop this else and outdent its block (indent-error-flow)
Check notice on line 32 in pkg/cod/stack.go
codefactor-io / CodeFactor
pkg/cod/stack.go#L32
If block ends with a return statement, so drop this else and outdent its block (indent-error-flow)
Check notice on line 232 in pkg/cod/buildings/buildings.go
codefactor-io / CodeFactor
pkg/cod/buildings/buildings.go#L146-L232
Complex Method
Check notice on line 322 in pkg/cod/buildings/buildings.go
codefactor-io / CodeFactor
pkg/cod/buildings/buildings.go#L255-L322
Complex Method
Check notice on line 64 in pkg/building/building.go
codefactor-io / CodeFactor
pkg/building/building.go#L22-L64
Complex Method