Preparing report...

Report for github.com/orkaproj/active-monitor

A+    Excellent!    Found 2 issues across 14 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!


gocyclo92%

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.

    • active-monitor/controllers/healthcheck_controller.go
    • Line 536: warning: cyclomatic complexity 22 of function (*HealthCheckReconciler).watchWorkflowReschedule() is high (> 15) (gocyclo)
    • Line 244: warning: cyclomatic complexity 19 of function (*HealthCheckReconciler).createRBACForWorkflow() is high (> 15) (gocyclo)
    • Line 806: warning: cyclomatic complexity 16 of function (*HealthCheckReconciler).parseWorkflowFromHealthcheck() is high (> 15) (gocyclo)

golint85%

Golint is a linter for Go source code.

    • active-monitor/controllers/healthcheck_controller.go
    • Line 61: warning: exported const WfInstanceIdLabelKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 1052: warning: comment on exported method HealthCheckReconciler.DeleteServiceAccount should be of the form "DeleteServiceAccount ..." (golint)
    • Line 1123: warning: comment on exported method HealthCheckReconciler.DeleteClusterRole should be of the form "DeleteClusterRole ..." (golint)
    • Line 1193: warning: comment on exported method HealthCheckReconciler.DeleteNameSpaceRole should be of the form "DeleteNameSpaceRole ..." (golint)
    • Line 1240: warning: comment on exported method HealthCheckReconciler.DeleteNameSpaceRoleBinding should be of the form "DeleteNameSpaceRoleBinding ..." (golint)
    • Line 1287: warning: comment on exported method HealthCheckReconciler.DeleteClusterRoleBinding should be of the form "DeleteClusterRoleBinding ..." (golint)
    • Line 1314: warning: exported method HealthCheckReconciler.ContainsEqualFoldSubstring should have comment or be unexported (golint)
    • Line 1323: warning: exported method HealthCheckReconciler.IsStorageError should have comment or be unexported (golint)
    • Line 1330: warning: exported method HealthCheckReconciler.GetTimerByName should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (signal: killed)


misspell92%

Misspell Finds commonly misspelled English words