Preparing report...

Report for github.com/turbinelabs/rotor

A+    Excellent!    Found 22 issues across 132 files

Tweet

gofmt98%

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!


gocyclo96%

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.

    • rotor/xds/poller/remote_test.go
    • Line 396: warning: cyclomatic complexity 20 of function overlayTest() is high (> 15) (gocyclo)
    • Line 94: warning: cyclomatic complexity 18 of function (remoteObjectsTestCase).run() is high (> 15) (gocyclo)

golint90%

Golint is a linter for Go source code.

    • rotor/plugins/aws/ecs_aws.go
    • Line 31: warning: exported const DescribeServicesWindowSz should have comment (or a comment on this block) or be unexported (golint)
    • Line 120: warning: error var badWindowSize should have name of the form errFoo (golint)
    • rotor/plugins/aws/ecs_helper_test.go
    • Line 187: warning: don't use underscores in Go names; var c1s1_task1arn should be c1s1Task1arn (golint)
    • Line 188: warning: don't use underscores in Go names; var c1s1_task2arn should be c1s1Task2arn (golint)
    • Line 189: warning: don't use underscores in Go names; var c1s2_task1arn should be c1s2Task1arn (golint)
    • Line 207: warning: don't use underscores in Go names; var c1s1ti1_containerarn should be c1s1ti1Containerarn (golint)
    • Line 208: warning: don't use underscores in Go names; var c1s1ti2_containerarn should be c1s1ti2Containerarn (golint)
    • Line 209: warning: don't use underscores in Go names; var c1s2ti1_containerarn should be c1s2ti1Containerarn (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words