Preparing report...

Report for github.com/nagare-media/models.go

(v0.0.0-20221221145550-8a80ca1c1dbf)

A+    Excellent!    Found 5 issues across 30 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!


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.

    • third_party/encoding/xml/xml.go
    • Line 566: warning: cyclomatic complexity 84 of function (*Decoder).rawToken() is high (> 15) (gocyclo)
    • Line 998: warning: cyclomatic complexity 53 of function (*Decoder).text() is high (> 15) (gocyclo)
    • Line 279: warning: cyclomatic complexity 21 of function (*Decoder).Token() is high (> 15) (gocyclo)
    • Line 870: warning: cyclomatic complexity 16 of function (*Decoder).attrval() is high (> 15) (gocyclo)
    • Line 1936: warning: cyclomatic complexity 16 of function escapeText() is high (> 15) (gocyclo)
    • third_party/encoding/xml/marshal.go
    • Line 448: warning: cyclomatic complexity 53 of function (*printer).marshalValue() is high (> 15) (gocyclo)
    • Line 934: warning: cyclomatic complexity 52 of function (*printer).marshalStruct() is high (> 15) (gocyclo)
    • Line 746: warning: cyclomatic complexity 32 of function (*printer).writeStart() is high (> 15) (gocyclo)
    • Line 607: warning: cyclomatic complexity 26 of function (*printer).marshalAttr() is high (> 15) (gocyclo)
    • Line 380: warning: cyclomatic complexity 18 of function (*printer).createPrefix() is high (> 15) (gocyclo)
    • Line 259: warning: cyclomatic complexity 17 of function isValidDirective() is high (> 15) (gocyclo)
    • Line 202: warning: cyclomatic complexity 16 of function (*Encoder).EncodeToken() is high (> 15) (gocyclo)
    • third_party/encoding/xml/typeinfo.go
    • Line 112: warning: cyclomatic complexity 33 of function structFieldInfo() is high (> 15) (gocyclo)
    • Line 54: warning: cyclomatic complexity 20 of function getTypeInfo() is high (> 15) (gocyclo)
    • Line 272: warning: cyclomatic complexity 20 of function addFieldInfo() is high (> 15) (gocyclo)
    • third_party/encoding/xml/read.go
    • Line 308: warning: cyclomatic complexity 97 of function (*Decoder).unmarshal() is high (> 15) (gocyclo)
    • Line 689: warning: cyclomatic complexity 20 of function (*Decoder).unmarshalPath() is high (> 15) (gocyclo)
    • Line 616: warning: cyclomatic complexity 19 of function copyValue() is high (> 15) (gocyclo)
    • Line 246: warning: cyclomatic complexity 17 of function (*Decoder).unmarshalAttr() is high (> 15) (gocyclo)

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!


misspell96%

Misspell Finds commonly misspelled English words

    • ebu/ebucore/v1.10/types.go
    • Line 1117: warning: "coordiantes" is a misspelling of "coordinates" (misspell)
    • Line 1527: warning: "identifiy" is a misspelling of "identify" (misspell)
    • Line 1553: warning: "identifiy" is a misspelling of "identify" (misspell)
    • Line 1656: warning: "nto" is a misspelling of "not" (misspell)
    • Line 2201: warning: "identifiy" is a misspelling of "identify" (misspell)
    • Line 2248: warning: "adress" is a misspelling of "address" (misspell)
    • Line 2581: warning: "frequencey" is a misspelling of "frequency" (misspell)
    • Line 4453: warning: "pronounciation" is a misspelling of "pronunciation" (misspell)