Preparing report...

Report for github.com/goretk/gore

(v0.11.1)

A+    Excellent!    Found 12 issues across 32 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!


gofmt87%

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)

gocyclo78%

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.

    • type_test.go
    • Line 31: warning: cyclomatic complexity 20 of function TestGetTypes() is high (> 15) (gocyclo)
    • file.go
    • Line 44: warning: cyclomatic complexity 17 of function Open() is high (> 15) (gocyclo)
    • Line 213: warning: cyclomatic complexity 17 of function (*GoFile).enumPackages() is high (> 15) (gocyclo)
    • type.go
    • Line 336: warning: cyclomatic complexity 70 of function typeParse() is high (> 15) (gocyclo)
    • Line 165: warning: cyclomatic complexity 25 of function (*GoType).String() is high (> 15) (gocyclo)
    • type2.go
    • Line 204: warning: cyclomatic complexity 62 of function (*typeParser).parseType() is high (> 15) (gocyclo)
    • goroot.go
    • Line 30: warning: cyclomatic complexity 50 of function tryFromGOROOT() is high (> 15) (gocyclo)
    • Line 210: warning: cyclomatic complexity 27 of function tryFromTimeInit() is high (> 15) (gocyclo)
    • package.go
    • Line 134: warning: cyclomatic complexity 28 of function (*PathPackageClassifier).Classify() is high (> 15) (gocyclo)
    • Line 257: warning: cyclomatic complexity 16 of function (*ModPackageClassifier).Classify() is high (> 15) (gocyclo)
    • goversion.go
    • Line 122: warning: cyclomatic complexity 24 of function tryFromSchedInit() 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