Preparing report...

Report for kubeops.dev/auditor

A+    Excellent!    Found 18 issues across 32 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!


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.


golint46%

Golint is a linter for Go source code.

    • /kubeops.dev/auditor/test/e2e/framework/namespace.go
    • Line 27: warning: exported method Framework.Namespace should have comment or be unexported (golint)
    • Line 31: warning: exported method Framework.CreateNamespace should have comment or be unexported (golint)
    • Line 41: warning: exported method Framework.DeleteNamespace should have comment or be unexported (golint)
    • /kubeops.dev/auditor/pkg/cmds/server/options.go
    • Line 35: warning: exported type ExtraOptions should have comment or be unexported (golint)
    • Line 46: warning: exported function NewExtraOptions should have comment or be unexported (golint)
    • Line 56: warning: exported method ExtraOptions.AddGoFlags should have comment or be unexported (golint)
    • Line 68: warning: exported method ExtraOptions.AddFlags should have comment or be unexported (golint)
    • Line 74: warning: exported method ExtraOptions.ApplyTo should have comment or be unexported (golint)
    • /kubeops.dev/auditor/test/e2e/framework/framework.go
    • Line 25: warning: exported type Framework should have comment or be unexported (golint)
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • Line 46: warning: exported method Framework.Invoke should have comment or be unexported (golint)
    • Line 53: warning: exported method Framework.Name should have comment or be unexported (golint)
    • Line 57: warning: exported method Invocation.KubeClient should have comment or be unexported (golint)
    • Line 61: warning: exported method Invocation.RestConfig should have comment or be unexported (golint)
    • Line 65: warning: exported type Invocation should have comment or be unexported (golint)
    • /kubeops.dev/auditor/pkg/eventer/recorder.go
    • Line 35: warning: exported const EventReasonInvalidRestic should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: exported function NewEventRecorder should have comment or be unexported (golint)
    • Line 74: warning: exported function CreateEvent should have comment or be unexported (golint)
    • Line 98: warning: exported function CreateEventWithLog should have comment or be unexported (golint)
    • /kubeops.dev/auditor/pkg/server/server.go
    • Line 40: warning: exported var Scheme should have comment or be unexported (golint)
    • Line 62: warning: exported type AuditorConfig should have comment or be unexported (golint)
    • Line 73: warning: exported method Auditor.Run should have comment or be unexported (golint)
    • Line 83: warning: exported type CompletedConfig should have comment or be unexported (golint)
    • /kubeops.dev/auditor/pkg/cmds/server/start.go
    • Line 37: warning: exported type AuditorOptions should have comment or be unexported (golint)
    • Line 45: warning: exported function NewAuditorOptions should have comment or be unexported (golint)
    • Line 62: warning: exported method AuditorOptions.AddFlags should have comment or be unexported (golint)
    • Line 67: warning: exported method AuditorOptions.Validate should have comment or be unexported (golint)
    • Line 71: warning: exported method AuditorOptions.Complete should have comment or be unexported (golint)
    • Line 75: warning: exported method AuditorOptions.Config should have comment or be unexported (golint)
    • Line 101: warning: exported method AuditorOptions.Run should have comment or be unexported (golint)
    • /kubeops.dev/auditor/pkg/controller/controller.go
    • Line 32: warning: exported type AuditorController should have comment or be unexported (golint)
    • Line 47: warning: exported method AuditorController.Run should have comment or be unexported (golint)
    • Line 53: warning: exported method AuditorController.RunInformers 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!