Preparing report...

Report for github.com/bridgecrewio/yor

(v0.0.0-20220613164931-5002ea65520d)

A+    Excellent!    Found 9 issues across 74 files

Tweet

gofmt98%

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!


gocyclo90%

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.

    • src/common/yaml/yaml_writer.go
    • Line 277: warning: cyclomatic complexity 20 of function MapResourcesLineYAML() is high (> 15) (gocyclo)
    • Line 22: warning: cyclomatic complexity 19 of function WriteYAMLFile() is high (> 15) (gocyclo)

ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words

    • src/terraform/structure/tf_taggable.go
    • Line 462: warning: "hdinsight" is a misspelling of "hindsight" (misspell)
    • Line 463: warning: "hdinsight" is a misspelling of "hindsight" (misspell)
    • Line 464: warning: "hdinsight" is a misspelling of "hindsight" (misspell)
    • Line 465: warning: "hdinsight" is a misspelling of "hindsight" (misspell)
    • Line 466: warning: "hdinsight" is a misspelling of "hindsight" (misspell)
    • Line 467: warning: "hdinsight" is a misspelling of "hindsight" (misspell)
    • Line 468: warning: "hdinsight" is a misspelling of "hindsight" (misspell)
    • Line 469: warning: "hdinsight" is a misspelling of "hindsight" (misspell)