Preparing report...

Report for github.com/cybozu-go/cattage

(v0.1.0)

A+    Excellent!    Found 12 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!


gocyclo90%

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.

    • hooks/application.go
    • Line 69: warning: cyclomatic complexity 20 of function (*applicationValidator).Handle() is high (> 15) (gocyclo)
    • hooks/tenant.go
    • Line 58: warning: cyclomatic complexity 17 of function (*tenantValidator).Handle() is high (> 15) (gocyclo)

golint68%

Golint is a linter for Go source code.

    • pkg/constants/meta.go
    • Line 9: warning: exported const OwnerTenant should have comment or be unexported (golint)
    • Line 11: warning: exported const OwnerAppNamespace should have comment or be unexported (golint)
    • Line 13: warning: exported const TenantFieldManager should have comment or be unexported (golint)
    • Line 14: warning: exported const ApplicationFieldManager should have comment or be unexported (golint)
    • Line 15: warning: exported const StatusFieldManager should have comment or be unexported (golint)
    • Line 16: warning: exported const SpecFieldManager should have comment or be unexported (golint)
    • Line 17: warning: exported const ProjectFieldManager should have comment or be unexported (golint)
    • api/v1beta1/tenant_types.go
    • Line 63: warning: exported const TenantHealthy should have comment (or a comment on this block) or be unexported (golint)
    • Line 79: warning: exported const ConditionReady should have comment (or a comment on this block) or be unexported (golint)
    • pkg/argocd/application.go
    • Line 8: warning: exported function Application should have comment or be unexported (golint)
    • Line 18: warning: exported function ApplicationList should have comment or be unexported (golint)
    • pkg/argocd/constants.go
    • Line 4: warning: exported const ApplicationVersion should have comment (or a comment on this block) or be unexported (golint)
    • controllers/tenant_controller.go
    • Line 39: warning: exported function NewTenantReconciler should have comment or be unexported (golint)
    • Line 477: warning: exported function SetupIndexForNamespace should have comment or be unexported (golint)
    • pkg/constants/indexer.go
    • Line 3: warning: exported const RootNamespaces should have comment or be unexported (golint)
    • Line 4: warning: exported const TenantNamespaces should have comment or be unexported (golint)
    • controllers/application_controller.go
    • Line 32: warning: exported function NewApplicationReconciler should have comment or be unexported (golint)
    • Line 50: warning: exported method ApplicationReconciler.Reconcile 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!