Preparing report...

Report for github.com/uk702/glide

(v0.12.3)

A+    Excellent!    Found 16 issues across 75 files

Tweet

gofmt97%

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!


gocyclo81%

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.

    • glide.go
    • Line 122: warning: cyclomatic complexity 28 of function commands() is high (> 15) (gocyclo)
    • repo/vcs.go
    • Line 347: warning: cyclomatic complexity 27 of function defaultBranch() is high (> 15) (gocyclo)
    • Line 24: warning: cyclomatic complexity 27 of function VcsUpdate() is high (> 15) (gocyclo)
    • Line 149: warning: cyclomatic complexity 19 of function VcsVersion() is high (> 15) (gocyclo)
    • cfg/config.go
    • Line 206: warning: cyclomatic complexity 16 of function (*Config).DeDupe() is high (> 15) (gocyclo)
    • gom/parser.go
    • Line 66: warning: cyclomatic complexity 16 of function parseGomfile() is high (> 15) (gocyclo)
    • action/config_wizard.go
    • Line 20: warning: cyclomatic complexity 34 of function ConfigWizard() is high (> 15) (gocyclo)
    • Line 252: warning: cyclomatic complexity 23 of function wizardFindVersions() is high (> 15) (gocyclo)
    • action/get.go
    • Line 124: warning: cyclomatic complexity 25 of function addPkgsToConfig() is high (> 15) (gocyclo)
    • gom/gom.go
    • Line 22: warning: cyclomatic complexity 17 of function Parse() is high (> 15) (gocyclo)
    • dependency/resolver.go
    • Line 455: warning: cyclomatic complexity 46 of function (*Resolver).resolveImports() is high (> 15) (gocyclo)
    • Line 261: warning: cyclomatic complexity 34 of function (*Resolver).ResolveLocal() is high (> 15) (gocyclo)
    • Line 676: warning: cyclomatic complexity 21 of function (*Resolver).resolveList() is high (> 15) (gocyclo)
    • Line 805: warning: cyclomatic complexity 20 of function (*Resolver).imports() is high (> 15) (gocyclo)
    • Line 968: warning: cyclomatic complexity 16 of function (*Resolver).FindPkg() is high (> 15) (gocyclo)
    • repo/installer.go
    • Line 248: warning: cyclomatic complexity 29 of function (*Installer).Export() is high (> 15) (gocyclo)
    • Line 133: warning: cyclomatic complexity 21 of function (*Installer).Update() is high (> 15) (gocyclo)
    • Line 719: warning: cyclomatic complexity 19 of function (*VersionHandler).SetVersion() is high (> 15) (gocyclo)
    • Line 822: warning: cyclomatic complexity 16 of function determineDependency() is high (> 15) (gocyclo)
    • tree/tree.go
    • Line 101: warning: cyclomatic complexity 26 of function findPkg() 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!