Preparing report...

Report for git.darknebu.la/GalaxySimulator/db-actions

A    Great!    Found 2 issues across 2 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint0%

Golint is a linter for Go source code.

    • /git.darknebu.la/GalaxySimulator/db-actions/db_actions.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 24: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 35: warning: exported const DBUSER should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: comment on exported function ConnectToDB should be of the form "ConnectToDB ..." (golint)
    • Line 63: warning: comment on exported function NewTree should be of the form "NewTree ..." (golint)
    • Line 89: warning: comment on exported function InsertStar should be of the form "InsertStar ..." (golint)
    • Line 403: warning: comment on exported function DeleteAllStars should be of the form "DeleteAllStars ..." (golint)
    • Line 417: warning: comment on exported function DeleteAllNodes should be of the form "DeleteAllNodes ..." (golint)
    • Line 527: warning: comment on exported function GetStarIDTimestep should be of the form "GetStarIDTimestep ..." (golint)
    • Line 582: warning: comment on exported function GetListOfStarsGo should be of the form "GetListOfStarsGo ..." (golint)
    • Line 654: warning: comment on exported function GetListOfStarIDsTimestep should be of the form "GetListOfStarIDsTimestep ..." (golint)
    • Line 683: warning: comment on exported function GetListOfStarsCsv should be of the form "GetListOfStarsCsv ..." (golint)
    • Line 714: warning: comment on exported function GetListOfStarsTree should be of the form "GetListOfStarsTree ..." (golint)
    • Line 758: warning: comment on exported function InsertList should be of the form "InsertList ..." (golint)
    • Line 818: warning: comment on exported function UpdateTotalMass should be of the form "UpdateTotalMass ..." (golint)
    • Line 873: warning: comment on exported function UpdateCenterOfMass should be of the form "UpdateCenterOfMass ..." (golint)
    • Line 968: warning: comment on exported function GenForestTree should be of the form "GenForestTree ..." (golint)
    • Line 1092: warning: comment on exported function CalcAllForcesNode should be of the form "CalcAllForcesNode ..." (golint)
    • Line 1281: warning: exported function InitStarsTable should have comment or be unexported (golint)
    • Line 1298: warning: exported function InitNodesTable should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!