Preparing report...

Report for code.cloudfoundry.org/eirinix

A+    Excellent!    Found 9 issues across 15 files

Tweet

gofmt93%

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!


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!


golint53%

Golint is a linter for Go source code.

    • /code.cloudfoundry.org/eirinix/testing/utils.go
    • Line 14: warning: exported function Kubectl should have comment or be unexported (golint)
    • Line 31: warning: exported type ContainerEnv should have comment or be unexported (golint)
    • Line 35: warning: exported type Container should have comment or be unexported (golint)
    • Line 41: warning: exported type PodStatus should have comment or be unexported (golint)
    • Line 44: warning: exported type PodSpec should have comment or be unexported (golint)
    • Line 48: warning: exported type ObjectMeta should have comment or be unexported (golint)
    • Line 51: warning: exported type Pod should have comment or be unexported (golint)
    • Line 57: warning: exported method Pod.IsRunning should have comment or be unexported (golint)
    • Line 61: warning: exported function KubePodStatus should have comment or be unexported (golint)
    • Line 75: warning: exported function KubeClean should have comment or be unexported (golint)
    • Line 99: warning: exported function KubeApply should have comment or be unexported (golint)
    • Line 103: warning: exported function KubeApplyNamespace should have comment or be unexported (golint)
    • /code.cloudfoundry.org/eirinix/manager.go
    • Line 39: warning: exported const LabelGUID should have comment (or a comment on this block) or be unexported (golint)
    • Line 282: warning: exported method DefaultExtensionManager.PatchFromPod should have comment or be unexported (golint)
    • Line 579: warning: exported method DefaultExtensionManager.Stop should have comment or be unexported (golint)
    • /code.cloudfoundry.org/eirinix/webhook.go
    • Line 59: warning: exported method DefaultMutatingWebhook.GetName should have comment or be unexported (golint)
    • Line 63: warning: exported method DefaultMutatingWebhook.GetRules should have comment or be unexported (golint)
    • Line 67: warning: exported method DefaultMutatingWebhook.GetFailurePolicy should have comment or be unexported (golint)
    • Line 71: warning: exported method DefaultMutatingWebhook.GetNamespaceSelector should have comment or be unexported (golint)
    • Line 75: warning: exported method DefaultMutatingWebhook.GetLabelSelector should have comment or be unexported (golint)
    • Line 84: warning: exported method DefaultMutatingWebhook.GetHandler should have comment or be unexported (golint)
    • Line 88: warning: exported method DefaultMutatingWebhook.GetWebhook should have comment or be unexported (golint)
    • Line 92: warning: exported method DefaultMutatingWebhook.GetPath should have comment or be unexported (golint)
    • /code.cloudfoundry.org/eirinix/testing/catalog.go
    • Line 179: warning: exported type EiriniApp should have comment or be unexported (golint)
    • Line 184: warning: comment on exported method EiriniApp.IsRunning should be of the form "IsRunning ..." (golint)
    • Line 193: warning: exported method EiriniApp.Delete should have comment or be unexported (golint)
    • Line 201: warning: exported method EiriniApp.Sync should have comment or be unexported (golint)
    • Line 221: warning: comment on exported method Catalog.StartEiriniStagingApp should be of the form "StartEiriniStagingApp ..." (golint)
    • Line 232: warning: comment on exported method Catalog.StartEiriniAppInNamespace should be of the form "StartEiriniAppInNamespace ..." (golint)
    • Line 243: warning: comment on exported method Catalog.StartEiriniStagingAppInNamespace should be of the form "StartEiriniStagingAppInNamespace ..." (golint)
    • Line 266: warning: exported type SimpleWatch should have comment or be unexported (golint)
    • Line 270: warning: exported method SimpleWatch.Handle should have comment or be unexported (golint)
    • Line 274: warning: comment on exported method Catalog.SimpleWatcherWithChannel should be of the form "SimpleWatcherWithChannel ..." (golint)
    • Line 279: warning: exported type SimpleWatcherWithChannel should have comment or be unexported (golint)
    • Line 283: warning: exported method SimpleWatcherWithChannel.Handle should have comment or be unexported (golint)
    • /code.cloudfoundry.org/eirinix/testing/reconciler.go
    • Line 85: warning: exported type EditImageReconciler should have comment or be unexported (golint)
    • Line 89: warning: exported method EditImageReconciler.Reconcile should have comment or be unexported (golint)
    • Line 112: warning: exported method EditImageReconciler.Register should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!