Preparing report...

Report for github.com/lwolf/kubereplay

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


gocyclo94%

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.


golint75%

Golint is a linter for Go source code.

    • kubereplay/helpers/generator.go
    • Line 18: warning: exported function AppLabels should have comment or be unexported (golint)
    • Line 28: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 128: warning: exported function GenerateService should have comment or be unexported (golint)
    • Line 221: warning: exported function GenerateDeployment should have comment or be unexported (golint)
    • kubereplay/pkg/apis/kubereplay/v1alpha1/refinery_types.go
    • Line 22: warning: exported type GoreplayImage should have comment or be unexported (golint)
    • Line 28: warning: comment on exported type RefineryStorage should be of the form "RefineryStorage ..." (with optional leading article) (golint)
    • Line 38: warning: exported type FileSilo should have comment or be unexported (golint)
    • Line 47: warning: exported type TcpSilo should have comment or be unexported (golint)
    • Line 52: warning: exported type StdoutSilo should have comment or be unexported (golint)
    • Line 56: warning: exported type HttpSilo should have comment or be unexported (golint)
    • Line 63: warning: exported type ElasticsearchSilo should have comment or be unexported (golint)
    • Line 68: warning: exported type KafkaSilo should have comment or be unexported (golint)
    • Line 83: warning: comment on exported type Refinery should be of the form "Refinery ..." (with optional leading article) (golint)
    • kubereplay/pkg/apis/kubereplay/v1alpha1/zz_generated.kubebuilder.go
    • Line 38: warning: exported var SchemeBuilder should have comment or be unexported (golint)
    • Line 56: warning: exported type HarvesterList should have comment or be unexported (golint)
    • Line 64: warning: exported type RefineryList should have comment or be unexported (golint)
    • Line 80: warning: comment on exported var HarvesterCRD should be of the form "HarvesterCRD ..." (golint)
    • Line 135: warning: comment on exported var RefineryCRD should be of the form "RefineryCRD ..." (golint)
    • kubereplay/pkg/controller/refinery/controller.go
    • Line 44: warning: exported method RefineryController.Reconcile should have comment or be unexported (golint)
    • Line 109: warning: exported method RefineryController.Get should have comment or be unexported (golint)
    • Line 113: warning: exported method RefineryController.Lookup should have comment or be unexported (golint)
    • Line 117: warning: comment on exported type RefineryController should be of the form "RefineryController ..." (with optional leading article) (golint)
    • kubereplay/pkg/controller/harvester/controller.go
    • Line 82: warning: exported method HarvesterController.Reconcile should have comment or be unexported (golint)
    • Line 173: warning: exported method HarvesterController.Lookup should have comment or be unexported (golint)
    • Line 177: warning: exported method HarvesterController.Get should have comment or be unexported (golint)
    • Line 181: warning: comment on exported type HarvesterController should be of the form "HarvesterController ..." (with optional leading article) (golint)
    • kubereplay/pkg/inject/zz_generated.kubebuilder.go
    • Line 51: 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 56: 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!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words