Preparing report...

Report for github.com/LanceLRQ/deer-executor

(v1.4.5)

D    Needs lots of improvement    Found 15 issues across 15 files

Tweet

gofmt0%

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!


gocyclo86%

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.

    • special.go
    • Line 141: warning: cyclomatic complexity 21 of function InteractiveChecker() is high (> 15) (gocyclo)
    • checker.go
    • Line 124: warning: cyclomatic complexity 19 of function CharDiffIoUtil() is high (> 15) (gocyclo)

ineffassign73%

IneffAssign detects ineffectual assignments in Go code.

    • runner.go
    • Line 73: warning: ineffectual assignment to err (ineffassign)
    • Line 73: warning: ineffectual assignment to childErr (ineffassign)
    • Line 90: warning: ineffectual assignment to stdinFd (ineffassign)
    • Line 96: warning: ineffectual assignment to stdoutFd (ineffassign)
    • Line 102: warning: ineffectual assignment to stderrFd (ineffassign)
    • special.go
    • Line 68: warning: ineffectual assignment to err (ineffassign)
    • Line 68: warning: ineffectual assignment to childErr (ineffassign)
    • Line 82: warning: ineffectual assignment to stdinFd (ineffassign)
    • Line 89: warning: ineffectual assignment to stdoutFd (ineffassign)
    • Line 95: warning: ineffectual assignment to stderrFd (ineffassign)
    • Line 112: warning: ineffectual assignment to childErr (ineffassign)
    • Line 148: warning: ineffectual assignment to childErr (ineffassign)
    • Line 148: warning: ineffectual assignment to judgerErr (ineffassign)
    • Line 237: warning: ineffectual assignment to judgerErr (ineffassign)
    • utils.go
    • Line 89: warning: ineffectual assignment to filed (ineffassign)
    • Line 96: warning: ineffectual assignment to errMsg (ineffassign)
    • Line 181: warning: ineffectual assignment to errMsg (ineffassign)

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!