Preparing report...

Report for github.com/oracle/coherence-cli

(v0.0.0-20250225011233-cddd4627e2d6)

A+    Excellent!    Found 13 issues across 101 files

Tweet

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!


gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo87%

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.

    • pkg/cmd/utils.go
    • Line 324: warning: cyclomatic complexity 25 of function IssueFederationCommand() is high (> 15) (gocyclo)
    • Line 251: warning: cyclomatic complexity 17 of function IssueReporterCommand() is high (> 15) (gocyclo)
    • pkg/cmd/topics.go
    • Line 691: warning: cyclomatic complexity 21 of function issueSubscriberOperation() is high (> 15) (gocyclo)
    • pkg/cmd/monitor_cluster.go
    • Line 409: warning: cyclomatic complexity 19 of function updateScreen() is high (> 15) (gocyclo)
    • Line 1249: warning: cyclomatic complexity 18 of function drawContent() is high (> 15) (gocyclo)
    • pkg/cmd/cluster_utils.go
    • Line 796: warning: cyclomatic complexity 38 of function retrieveClusterSummary() is high (> 15) (gocyclo)
    • Line 233: warning: cyclomatic complexity 20 of function startCluster() is high (> 15) (gocyclo)
    • pkg/cmd/formatting.go
    • Line 2458: warning: cyclomatic complexity 31 of function (*formattedTable).String() is high (> 15) (gocyclo)
    • Line 2278: warning: cyclomatic complexity 22 of function CreateCamelCaseLabel() is high (> 15) (gocyclo)
    • Line 286: warning: cyclomatic complexity 16 of function FormatFederationSummary() is high (> 15) (gocyclo)
    • pkg/cmd/member.go
    • Line 75: warning: cyclomatic complexity 20 of function getMembers() is high (> 15) (gocyclo)
    • Line 848: warning: cyclomatic complexity 17 of function issueClusterCommand() is high (> 15) (gocyclo)
    • pkg/cmd/jfr.go
    • Line 231: warning: cyclomatic complexity 19 of function executeJFROperation() is high (> 15) (gocyclo)

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!