Preparing report...

Report for github.com/mbrt/k8cc

A+    Excellent!    Found 15 issues across 58 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!


golint75%

Golint is a linter for Go source code.

    • k8cc/pkg/apis/k8cc.io/v1alpha1/zz_generated.deepcopy.go
    • Line 53: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 82: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 116: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 185: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 214: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 248: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 348: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 409: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • k8cc/pkg/client/clientset/versioned/typed/k8cc.io/v1alpha1/k8cc.io_client.go
    • Line 26: warning: exported type K8ccV1alpha1Interface should have comment or be unexported (golint)
    • Line 39: warning: exported method K8ccV1alpha1Client.Distccs should have comment or be unexported (golint)
    • Line 43: warning: exported method K8ccV1alpha1Client.DistccClaims should have comment or be unexported (golint)
    • Line 47: warning: exported method K8ccV1alpha1Client.DistccClients should have comment or be unexported (golint)
    • Line 51: warning: exported method K8ccV1alpha1Client.DistccClientClaims should have comment or be unexported (golint)
    • k8cc/pkg/client/clientset/versioned/typed/k8cc.io/v1alpha1/fake/fake_k8cc.io_client.go
    • Line 25: warning: exported type FakeK8ccV1alpha1 should have comment or be unexported (golint)
    • Line 29: warning: exported method FakeK8ccV1alpha1.Distccs should have comment or be unexported (golint)
    • Line 33: warning: exported method FakeK8ccV1alpha1.DistccClaims should have comment or be unexported (golint)
    • Line 37: warning: exported method FakeK8ccV1alpha1.DistccClients should have comment or be unexported (golint)
    • Line 41: warning: exported method FakeK8ccV1alpha1.DistccClientClaims should have comment or be unexported (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!


misspell98%

Misspell Finds commonly misspelled English words