Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port codebase to golang #100

Open
wants to merge 36 commits into
base: master
Choose a base branch
from

wip

feb44d3
Select commit
Loading
Failed to load commit list.
Open

Port codebase to golang #100

wip
feb44d3
Select commit
Loading
Failed to load commit list.
codefactor.io / CodeFactor succeeded Dec 18, 2024 in 1s

26 issues fixed. 9 issues found.

Annotations

Check notice on line 182 in pkg/cod/constant.go

See this annotation in the file changed.

@codefactor-io 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

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/cod/parser.go#L8-L144

Complex Method

Check notice on line 328 in pkg/cod/constant.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/cod/constant.go#L142-L328

Complex Method

Check notice on line 150 in pkg/cod/array.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/cod/array.go#L50-L150

Complex Method

Check notice on line 264 in pkg/cod/variable.go

See this annotation in the file changed.

@codefactor-io 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

See this annotation in the file changed.

@codefactor-io 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

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/cod/buildings/buildings.go#L146-L232

Complex Method

Check notice on line 322 in pkg/cod/buildings/buildings.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/cod/buildings/buildings.go#L255-L322

Complex Method

Check notice on line 64 in pkg/building/building.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/building/building.go#L22-L64

Complex Method