Preparing report...

Report for github.com/istio/operator

A+    Excellent!    Found 31 issues across 109 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!


gocyclo91%

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.


golint76%

Golint is a linter for Go source code.

    • operator/pkg/helm/vfs_renderer.go
    • Line 136: warning: exported function BuiltinProfileToFilename should have comment or be unexported (golint)
    • Line 150: warning: comment on exported function ListBuiltinProfiles should be of the form "ListBuiltinProfiles ..." (golint)
    • operator/pkg/tpath/tpath.go
    • Line 228: warning: exported function IsLeafNode should have comment or be unexported (golint)
    • Line 275: warning: comment on exported function DeleteFromTree should be of the form "DeleteFromTree ..." (golint)
    • operator/pkg/manifest/client.go
    • Line 130: warning: exported method Client.PodsForSelector should have comment or be unexported (golint)
    • Line 160: warning: exported method Client.ConfigMapForSelector should have comment or be unexported (golint)
    • operator/pkg/manifest/installer.go
    • Line 89: warning: exported type CompositeOutput should have comment or be unexported (golint)
    • Line 248: warning: exported function ApplyManifest should have comment or be unexported (golint)
    • Line 349: warning: exported function GetKubectlGetItems should have comment or be unexported (golint)
    • Line 371: warning: exported function DeploymentExists should have comment or be unexported (golint)
    • Line 753: warning: exported function InitK8SRestClient should have comment or be unexported (golint)
    • operator/pkg/compare/compare.go
    • Line 217: warning: exported function ManifestDiff should have comment or be unexported (golint)
    • Line 231: warning: comment on exported function ManifestDiffWithRenameSelectIgnore should be of the form "ManifestDiffWithRenameSelectIgnore ..." (golint)
    • operator/pkg/helmreconciler/customizers.go
    • Line 40: warning: exported method SimpleRenderingCustomizer.Input should have comment or be unexported (golint)
    • Line 44: warning: exported method SimpleRenderingCustomizer.PruningDetails should have comment or be unexported (golint)
    • Line 48: warning: exported method SimpleRenderingCustomizer.Listener should have comment or be unexported (golint)
    • Line 52: warning: exported method SimpleRenderingCustomizer.RegisterReconciler should have comment or be unexported (golint)
    • operator/pkg/name/name.go
    • Line 36: warning: comment on exported const IstioBaseComponentName should be of the form "IstioBaseComponentName ..." (golint)
    • Line 39: warning: exported const PilotComponentName should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: comment on exported const IngressComponentName should be of the form "IngressComponentName ..." (golint)
    • Line 53: warning: comment on exported const AddonComponentName should be of the form "AddonComponentName ..." (golint)
    • Line 56: warning: comment on exported const IstioOperatorComponentName should be of the form "IstioOperatorComponentName ..." (golint)
    • Line 62: warning: exported var AllCoreComponentNames should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!