Preparing report...

Report for github.com/shoobyban/filehelper

A    Great!    Found 4 issues across 6 files

Tweet

gofmt66%

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!


gocyclo66%

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.

    • filehelper/template.go
    • Line 387: warning: cyclomatic complexity 31 of function empty() is high (> 15) (gocyclo)
    • Line 836: warning: cyclomatic complexity 25 of function pathValue() is high (> 15) (gocyclo)
    • Line 136: warning: cyclomatic complexity 23 of function seq() is high (> 15) (gocyclo)
    • Line 636: warning: cyclomatic complexity 17 of function divide() is high (> 15) (gocyclo)
    • Line 427: warning: cyclomatic complexity 17 of function emptyStr() is high (> 15) (gocyclo)
    • Line 548: warning: cyclomatic complexity 17 of function subtract() is high (> 15) (gocyclo)
    • Line 504: warning: cyclomatic complexity 17 of function add() is high (> 15) (gocyclo)
    • Line 592: warning: cyclomatic complexity 17 of function multiply() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign66%

IneffAssign detects ineffectual assignments in Go code.

    • filehelper/template.go
    • Line 793: warning: ineffectual assignment to err (ineffassign)
    • Line 799: warning: ineffectual assignment to err (ineffassign)
    • Line 883: warning: ineffectual assignment to err (ineffassign)
    • Line 907: warning: ineffectual assignment to err (ineffassign)

misspell83%

Misspell Finds commonly misspelled English words

    • filehelper/tar.go
    • Line 147: warning: "begining" is a misspelling of "beginning" (misspell)
    • Line 148: warning: "begining" is a misspelling of "beginning" (misspell)
    • Line 149: warning: "begining" is a misspelling of "beginning" (misspell)
    • Line 150: warning: "begining" is a misspelling of "beginning" (misspell)
    • Line 150: warning: "begining" is a misspelling of "beginning" (misspell)
    • Line 155: warning: "begining" is a misspelling of "beginning" (misspell)