Preparing report...

Report for github.com/xorpaul/g10k

A    Great!    Found 8 issues across 10 files

Tweet

gofmt90%

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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


gocyclo20%

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.

    • g10k/puppetfile.go
    • Line 215: warning: cyclomatic complexity 63 of function resolvePuppetfile() is high (> 15) (gocyclo)
    • Line 33: warning: cyclomatic complexity 37 of function resolvePuppetEnvironment() is high (> 15) (gocyclo)
    • g10k/forge.go
    • Line 670: warning: cyclomatic complexity 30 of function syncForgeToModuleDir() is high (> 15) (gocyclo)
    • Line 46: warning: cyclomatic complexity 23 of function doModuleInstallOrNothing() is high (> 15) (gocyclo)
    • g10k/git.go
    • Line 147: warning: cyclomatic complexity 25 of function syncToModuleDir() is high (> 15) (gocyclo)
    • Line 97: warning: cyclomatic complexity 16 of function doMirrorOrUpdate() is high (> 15) (gocyclo)
    • g10k/g10k.go
    • Line 220: warning: cyclomatic complexity 21 of function main() is high (> 15) (gocyclo)
    • g10k/stale.go
    • Line 11: warning: cyclomatic complexity 20 of function purgeUnmanagedContent() is high (> 15) (gocyclo)
    • g10k/config.go
    • Line 177: warning: cyclomatic complexity 70 of function readPuppetfile() is high (> 15) (gocyclo)
    • Line 18: warning: cyclomatic complexity 24 of function readConfigfile() is high (> 15) (gocyclo)

ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


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!