Preparing report...

Report for github.com/piontec/netperf-operator

A+    Excellent!    Found 9 issues across 11 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!


golint18%

Golint is a linter for Go source code.

    • netperf-operator/pkg/netperf-operator/operator.go
    • Line 26: warning: exported type Netperfer should have comment or be unexported (golint)
    • Line 31: warning: exported type Netperf should have comment or be unexported (golint)
    • Line 35: warning: exported function NewNetperf should have comment or be unexported (golint)
    • Line 41: warning: exported method Netperf.HandleNetperf should have comment or be unexported (golint)
    • Line 49: warning: exported method Netperf.HandlePod should have comment or be unexported (golint)
    • netperf-operator/pkg/apis/app/fakekube/fake-provider.go
    • Line 9: warning: exported type FakeProvider should have comment or be unexported (golint)
    • Line 12: warning: exported function NewFakeProvider should have comment or be unexported (golint)
    • Line 16: warning: exported method FakeProvider.Create should have comment or be unexported (golint)
    • Line 20: warning: exported method FakeProvider.Update should have comment or be unexported (golint)
    • Line 24: warning: exported method FakeProvider.Get should have comment or be unexported (golint)
    • Line 28: warning: exported method FakeProvider.Delete should have comment or be unexported (golint)
    • Line 32: warning: exported method FakeProvider.GetKubeClient should have comment or be unexported (golint)
    • netperf-operator/pkg/apis/app/v1alpha1/types.go
    • Line 8: warning: exported const NetperfPhaseInitial should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type NetperfList should have comment or be unexported (golint)
    • Line 25: warning: exported type Netperf should have comment or be unexported (golint)
    • Line 32: warning: exported type NetperfSpec should have comment or be unexported (golint)
    • Line 36: warning: exported type NetperfStatus should have comment or be unexported (golint)
    • netperf-operator/pkg/apis/app/realkube/real-provider.go
    • Line 11: warning: exported type RealProvider should have comment or be unexported (golint)
    • Line 14: warning: exported function NewRealProvider should have comment or be unexported (golint)
    • Line 18: warning: exported method RealProvider.Create should have comment or be unexported (golint)
    • Line 22: warning: exported method RealProvider.Update should have comment or be unexported (golint)
    • Line 26: warning: exported method RealProvider.Get should have comment or be unexported (golint)
    • Line 30: warning: exported method RealProvider.Delete should have comment or be unexported (golint)
    • Line 34: warning: exported method RealProvider.GetKubeClient should have comment or be unexported (golint)
    • netperf-operator/pkg/stub/handler.go
    • Line 15: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 21: warning: exported type Handler should have comment or be unexported (golint)
    • Line 25: warning: exported method Handler.Handle should have comment or be unexported (golint)
    • netperf-operator/pkg/apis/app/v1alpha1/zz_generated.deepcopy.go
    • Line 35: 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 69: 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)

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!