Preparing report...

Report for github.com/radiantrfid/iris

(v0.0.0-20190906104329-cbf21e101ac8)

A+    Excellent!    Found 37 issues across 423 files

Tweet

gofmt94%

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

    • doc.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

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!


gocyclo96%

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.

    • context/context.go
    • Line 2089: warning: cyclomatic complexity 17 of function GetForm() is high (> 15) (gocyclo)
    • Line 3574: warning: cyclomatic complexity 16 of function (*context).Negotiate() is high (> 15) (gocyclo)
    • view/jet.go
    • Line 412: warning: cyclomatic complexity 16 of function (*JetEngine).ExecuteWriter() is high (> 15) (gocyclo)
    • macro/macro.go
    • Line 102: warning: cyclomatic complexity 28 of function convertBuilderFunc() is high (> 15) (gocyclo)
    • core/memstore/memstore.go
    • Line 310: warning: cyclomatic complexity 17 of function (Entry).Uint8Default() is high (> 15) (gocyclo)
    • Line 360: warning: cyclomatic complexity 16 of function (Entry).Uint16Default() is high (> 15) (gocyclo)
    • Line 407: warning: cyclomatic complexity 16 of function (Entry).Uint32Default() is high (> 15) (gocyclo)
    • configuration_test.go
    • Line 228: warning: cyclomatic complexity 16 of function TestConfigurationTOML() is high (> 15) (gocyclo)
    • Line 130: warning: cyclomatic complexity 16 of function TestConfigurationYAML() 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!