Preparing report...

Report for github.com/tektoncd/operator

(v0.62.0)

A+    Excellent!    Found 40 issues across 350 files

Tweet

gofmt99%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo88%

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.

    • third_party/github.com/hashicorp/hcl/hcl/scanner/scanner.go
    • Line 130: warning: cyclomatic complexity 23 of function (*Scanner).Scan() is high (> 15) (gocyclo)
    • Line 272: warning: cyclomatic complexity 23 of function (*Scanner).scanNumber() is high (> 15) (gocyclo)
    • Line 393: warning: cyclomatic complexity 18 of function (*Scanner).scanHeredoc() is high (> 15) (gocyclo)
    • Line 231: warning: cyclomatic complexity 17 of function (*Scanner).scanComment() is high (> 15) (gocyclo)
    • Line 477: warning: cyclomatic complexity 16 of function (*Scanner).scanString() is high (> 15) (gocyclo)
    • third_party/github.com/hashicorp/hcl/hcl/printer/nodes.go
    • Line 288: warning: cyclomatic complexity 25 of function (*printer).objectType() is high (> 15) (gocyclo)
    • Line 109: warning: cyclomatic complexity 24 of function (*printer).output() is high (> 15) (gocyclo)
    • Line 519: warning: cyclomatic complexity 19 of function (*printer).list() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 18 of function (*printer).collectComments() is high (> 15) (gocyclo)
    • Line 454: warning: cyclomatic complexity 16 of function (*printer).alignedItems() 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!