Preparing report...

Report for github.com/openshift/managed-upgrade-operator

A+    Excellent!    Found 19 issues across 137 files

Tweet

gofmt94%

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!


gocyclo94%

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.


golint96%

Golint is a linter for Go source code.

    • managed-upgrade-operator/pkg/metrics/metrics.go
    • Line 26: warning: exported const Namespace should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: comment on exported type Metrics should be of the form "Metrics ..." (with optional leading article) (golint)
    • Line 69: warning: comment on exported type MetricsBuilder should be of the form "MetricsBuilder ..." (with optional leading article) (golint)
    • Line 74: warning: exported function NewBuilder should have comment or be unexported (golint)
    • Line 113: warning: exported type Counter should have comment or be unexported (golint)
    • Line 184: warning: exported method Counter.UpdateMetricValidationFailed should have comment or be unexported (golint)
    • Line 190: warning: exported method Counter.UpdateMetricValidationSucceeded should have comment or be unexported (golint)
    • Line 196: warning: exported method Counter.UpdateMetricClusterCheckFailed should have comment or be unexported (golint)
    • Line 202: warning: exported method Counter.UpdateMetricClusterCheckSucceeded should have comment or be unexported (golint)
    • Line 208: warning: exported method Counter.UpdateMetricScalingFailed should have comment or be unexported (golint)
    • Line 214: warning: exported method Counter.UpdateMetricScalingSucceeded should have comment or be unexported (golint)
    • Line 220: warning: exported method Counter.UpdateMetricUpgradeConfigSynced should have comment or be unexported (golint)
    • Line 224: warning: exported method Counter.ResetMetricUpgradeConfigSynced should have comment or be unexported (golint)
    • Line 228: warning: exported method Counter.UpdateMetricUpgradeControlPlaneTimeout should have comment or be unexported (golint)
    • Line 235: warning: exported method Counter.ResetMetricUpgradeControlPlaneTimeout should have comment or be unexported (golint)
    • Line 242: warning: exported method Counter.UpdateMetricUpgradeWorkerTimeout should have comment or be unexported (golint)
    • Line 249: warning: exported method Counter.ResetMetricUpgradeWorkerTimeout should have comment or be unexported (golint)
    • Line 256: warning: exported method Counter.UpdateMetricNodeDrainFailed should have comment or be unexported (golint)
    • Line 262: warning: exported method Counter.ResetMetricNodeDrainFailed should have comment or be unexported (golint)
    • Line 268: warning: exported method Counter.ResetAllMetricNodeDrainFailed should have comment or be unexported (golint)
    • Line 272: warning: exported method Counter.UpdateMetricUpgradeWindowNotBreached should have comment or be unexported (golint)
    • Line 278: warning: exported method Counter.UpdateMetricUpgradeWindowBreached should have comment or be unexported (golint)
    • Line 284: warning: exported method Counter.UpdateMetricNotificationEventSent should have comment or be unexported (golint)
    • Line 314: warning: exported method Counter.IsMetricNotificationEventSentSet should have comment or be unexported (golint)
    • Line 327: warning: exported method Counter.IsClusterVersionAtVersion should have comment or be unexported (golint)
    • Line 340: warning: exported method Counter.IsAlertFiring should have comment or be unexported (golint)
    • Line 364: warning: exported method Counter.Query should have comment or be unexported (golint)
    • Line 422: warning: exported type AlertResponse should have comment or be unexported (golint)
    • Line 427: warning: exported type AlertData should have comment or be unexported (golint)
    • Line 431: warning: exported type AlertResult 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!


misspell98%

Misspell Finds commonly misspelled English words