Preparing report...

Report for github.com/redhat-cop/global-load-balancer-operator

A+    Excellent!    Found 15 issues across 22 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!


gocyclo86%

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.


golint50%

Golint is a linter for Go source code.

    • global-load-balancer-operator/controllers/common/route53/trafficpolicydocument.go
    • Line 3: warning: exported type Route53TrafficPolicyDocument should have comment or be unexported (golint)
    • Line 15: warning: exported type Route53Endpoint should have comment or be unexported (golint)
    • Line 24: warning: exported type Route53EndpointType should have comment or be unexported (golint)
    • Line 27: warning: exported const Value should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type Route53RuleType should have comment or be unexported (golint)
    • Line 36: warning: exported const Failover should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type Route53Rule should have comment or be unexported (golint)
    • Line 54: warning: exported type Route53EndpointRuleReference should have comment or be unexported (golint)
    • global-load-balancer-operator/controllers/common/remotemanager/remotemanager.go
    • Line 15: warning: exported type RemoteManager should have comment or be unexported (golint)
    • Line 22: warning: exported method RemoteManager.GetStatus should have comment or be unexported (golint)
    • Line 28: warning: exported method RemoteManager.SetStatus should have comment or be unexported (golint)
    • Line 34: warning: exported function NewRemoteManager should have comment or be unexported (golint)
    • Line 48: warning: exported method RemoteManager.GetKey should have comment or be unexported (golint)
    • global-load-balancer-operator/controllers/globalroutediscovery/routereconciler.go
    • Line 33: warning: exported type RouteReconciler should have comment or be unexported (golint)
    • Line 131: warning: exported method RouteReconciler.Reconcile should have comment or be unexported (golint)
    • Line 242: warning: exported type EnqueueRequestForRoutesMatchingService should have comment or be unexported (golint)
    • Line 282: warning: exported method EnqueueRequestForRoutesMatchingService.Create should have comment or be unexported (golint)
    • Line 292: warning: exported method EnqueueRequestForRoutesMatchingService.Update should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell77%

Misspell Finds commonly misspelled English words