Preparing report...

Report for github.com/andeya/aster

(v0.7.6)

A+    Excellent!    Found 29 issues across 75 files

Tweet

gofmt84%

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!


gocyclo74%

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.

    • internal/imports/imports.go
    • Line 53: warning: cyclomatic complexity 17 of function process() is high (> 15) (gocyclo)
    • Line 280: warning: cyclomatic complexity 16 of function addImportSpaces() is high (> 15) (gocyclo)
    • aster/facade.go
    • Line 319: warning: cyclomatic complexity 17 of function (*facade).SetDoc() is high (> 15) (gocyclo)
    • internal/astutil/enclosing.go
    • Line 185: warning: cyclomatic complexity 67 of function childrenOf() is high (> 15) (gocyclo)
    • Line 482: warning: cyclomatic complexity 67 of function NodeDescription() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 20 of function PathEnclosingInterval() is high (> 15) (gocyclo)
    • internal/imports/fix.go
    • Line 949: warning: cyclomatic complexity 23 of function loadExports() is high (> 15) (gocyclo)
    • Line 1036: warning: cyclomatic complexity 17 of function findImport() is high (> 15) (gocyclo)
    • internal/packages/packages.go
    • Line 480: warning: cyclomatic complexity 46 of function (*loader).refine() is high (> 15) (gocyclo)
    • Line 691: warning: cyclomatic complexity 23 of function (*loader).loadPackage() is high (> 15) (gocyclo)
    • internal/astutil/imports.go
    • Line 28: warning: cyclomatic complexity 33 of function AddNamedImport() is high (> 15) (gocyclo)
    • Line 207: warning: cyclomatic complexity 30 of function DeleteNamedImport() is high (> 15) (gocyclo)
    • internal/gcimporter/bimport.go
    • Line 405: warning: cyclomatic complexity 28 of function (*importer).typ() is high (> 15) (gocyclo)
    • Line 53: warning: cyclomatic complexity 17 of function BImportData() is high (> 15) (gocyclo)
    • internal/gcimporter/iexport.go
    • Line 535: warning: cyclomatic complexity 18 of function (*exportWriter).mpint() is high (> 15) (gocyclo)
    • Line 342: warning: cyclomatic complexity 16 of function (*exportWriter).doTyp() is high (> 15) (gocyclo)
    • internal/packages/golist.go
    • Line 77: warning: cyclomatic complexity 28 of function goListDriver() is high (> 15) (gocyclo)
    • Line 250: warning: cyclomatic complexity 27 of function runNamedQueries() is high (> 15) (gocyclo)
    • Line 550: warning: cyclomatic complexity 25 of function golistDriver() is high (> 15) (gocyclo)
    • Line 726: warning: cyclomatic complexity 16 of function invokeGo() 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!