Preparing report...

Report for github.com/m88i/nexus-operator

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


golint80%

Golint is a linter for Go source code.

    • nexus-operator/api/v1alpha1/nexus_types.go
    • Line 255: warning: exported type NexusStatusType should have comment or be unexported (golint)
    • Line 258: warning: exported const NexusStatusOK should have comment (or a comment on this block) or be unexported (golint)
    • Line 278: warning: exported type Nexus should have comment or be unexported (golint)
    • nexus-operator/pkg/logger/logger.go
    • Line 24: warning: exported type Logger should have comment or be unexported (golint)
    • Line 28: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 44: warning: exported function GetLoggerWithNamespacedName should have comment or be unexported (golint)
    • nexus-operator/pkg/test/client.go
    • Line 155: warning: exported method FakeClient.RESTClient should have comment or be unexported (golint)
    • Line 159: warning: exported method FakeClient.ServerGroups should have comment or be unexported (golint)
    • Line 169: warning: exported method FakeClient.ServerResourcesForGroupVersion should have comment or be unexported (golint)
    • Line 179: warning: comment on exported method FakeClient.ServerResources should be of the form "ServerResources ..." (golint)
    • Line 190: warning: exported method FakeClient.ServerGroupsAndResources should have comment or be unexported (golint)
    • Line 200: warning: exported method FakeClient.ServerPreferredResources should have comment or be unexported (golint)
    • Line 210: warning: exported method FakeClient.ServerPreferredNamespacedResources should have comment or be unexported (golint)
    • Line 220: warning: exported method FakeClient.ServerVersion should have comment or be unexported (golint)
    • Line 230: warning: exported method FakeClient.OpenAPISchema should have comment or be unexported (golint)
    • Line 240: warning: exported method FakeClient.Get should have comment or be unexported (golint)
    • Line 250: warning: exported method FakeClient.List should have comment or be unexported (golint)
    • Line 260: warning: exported method FakeClient.Create should have comment or be unexported (golint)
    • Line 270: warning: exported method FakeClient.Delete should have comment or be unexported (golint)
    • Line 280: warning: exported method FakeClient.Update should have comment or be unexported (golint)
    • Line 290: warning: exported method FakeClient.Patch should have comment or be unexported (golint)
    • Line 300: warning: exported method FakeClient.DeleteAllOf should have comment or be unexported (golint)
    • Line 310: warning: exported method FakeClient.Status 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!