Preparing report...

Report for github.com/ChristopherRabotin/smd

A+    Excellent!    Found 25 issues across 78 files

Tweet

gofmt93%

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


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!


gocyclo75%

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.

    • smd/spacecraft.go
    • Line 70: warning: cyclomatic complexity 24 of function (*Spacecraft).Accelerate() is high (> 15) (gocyclo)
    • smd/config.go
    • Line 65: warning: cyclomatic complexity 18 of function (_smdconfig).HelioState() is high (> 15) (gocyclo)
    • smd/cmd/designer/main.go
    • Line 183: warning: cyclomatic complexity 46 of function GAPCP() is high (> 15) (gocyclo)
    • Line 50: warning: cyclomatic complexity 27 of function main() is high (> 15) (gocyclo)
    • smd/prop.go
    • Line 308: warning: cyclomatic complexity 36 of function (*OptimalΔOrbit).Control() is high (> 15) (gocyclo)
    • smd/mission.go
    • Line 291: warning: cyclomatic complexity 24 of function (*Mission).Func() is high (> 15) (gocyclo)
    • Line 220: warning: cyclomatic complexity 17 of function (*Mission).SetState() is high (> 15) (gocyclo)
    • smd/export.go
    • Line 212: warning: cyclomatic complexity 31 of function StreamStates() is high (> 15) (gocyclo)
    • smd/tools.go
    • Line 112: warning: cyclomatic complexity 26 of function Lambert() is high (> 15) (gocyclo)
    • Line 247: warning: cyclomatic complexity 24 of function PCPGenerator() is high (> 15) (gocyclo)

golint89%

Golint is a linter for Go source code.

    • smd/station.go
    • Line 22: warning: exported var DSS34Canberra should have comment or be unexported (golint)
    • Line 161: warning: exported function BuiltinStationFromName should have comment or be unexported (golint)
    • smd/tools.go
    • Line 69: warning: exported function TransferTypeFromInt should have comment or be unexported (golint)
    • smd/waypoints.go
    • Line 188: warning: comment on exported method OrbitTarget.SetExport should be of the form "SetExport ..." (golint)
    • smd/export.go
    • Line 430: warning: exported function NewThurstAngleExport should have comment or be unexported (golint)
    • smd/mission.go
    • Line 108: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • smd/perturbations.go
    • Line 128: warning: exported method OrbitNoise.Generate should have comment or be unexported (golint)
    • Line 142: warning: exported function NewOrbitNoise should have comment or be unexported (golint)
    • smd/prop.go
    • Line 542: warning: exported function NewManeuver should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell94%

Misspell Finds commonly misspelled English words