Preparing report...

Report for github.com/aws-controllers-k8s/runtime

A+    Excellent!    Found 13 issues across 52 files

Tweet

gofmt88%

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!


gocyclo98%

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.


golint88%

Golint is a linter for Go source code.

    • runtime/pkg/compare/reporter.go
    • Line 9: warning: exported type DiffItem should have comment or be unexported (golint)
    • Line 17: warning: exported type Reporter should have comment or be unexported (golint)
    • Line 22: warning: exported method Reporter.PushStep should have comment or be unexported (golint)
    • Line 26: warning: exported method Reporter.PopStep should have comment or be unexported (golint)
    • Line 30: warning: exported method Reporter.Report should have comment or be unexported (golint)
    • runtime/pkg/requeue/requeue.go
    • Line 21: warning: exported const DefaultRequeueAfterDuration should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: comment on exported type RequeueNeeded should be of the form "RequeueNeeded ..." (with optional leading article) (golint)
    • Line 69: warning: comment on exported type RequeueNeededAfter should be of the form "RequeueNeededAfter ..." (with optional leading article) (golint)
    • Line 87: warning: exported method RequeueNeededAfter.Duration should have comment or be unexported (golint)
    • runtime/pkg/errors/error.go
    • Line 26: warning: error var AdoptedResourceNotFound should have name of the form ErrFoo (golint)
    • Line 28: warning: error var MissingNameIdentifier should have name of the form ErrFoo (golint)
    • Line 31: warning: error var NotAdoptable should have name of the form ErrFoo (golint)
    • Line 33: warning: error var NotImplemented should have name of the form ErrFoo (golint)
    • Line 35: warning: error var NotFound should have name of the form ErrFoo (golint)
    • Line 38: warning: error var NilResourceManagerFactory should have name of the form ErrFoo (golint)
    • Line 44: warning: error var ResourceManagerFactoryNotFound should have name of the form ErrFoo (golint)
    • Line 50: warning: error var TemporaryOutOfSync should have name of the form ErrFoo (golint)
    • Line 53: warning: error var Terminal should have name of the form ErrFoo (golint)
    • Line 56: warning: error var SecretTypeNotSupported should have name of the form ErrFoo (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!