Preparing report...

Report for github.com/zimmski/tavor

A+    Excellent!    Found 24 issues across 111 files

Tweet

gofmt95%

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!


gocyclo88%

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.

    • tavor/cmd/tavor/main.go
    • Line 362: warning: cyclomatic complexity 180 of function mainCmd() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 41 of function checkArguments() is high (> 15) (gocyclo)
    • tavor/graph/dot.go
    • Line 36: warning: cyclomatic complexity 38 of function (*dotGraph).addDot() is high (> 15) (gocyclo)
    • Line 221: warning: cyclomatic complexity 20 of function WriteDot() is high (> 15) (gocyclo)
    • tavor/parser/tavor.go
    • Line 297: warning: cyclomatic complexity 68 of function (*tavorParser).parseTerm() is high (> 15) (gocyclo)
    • Line 1734: warning: cyclomatic complexity 37 of function ParseTavor() is high (> 15) (gocyclo)
    • Line 1200: warning: cyclomatic complexity 30 of function (*tavorParser).parseScope() is high (> 15) (gocyclo)
    • Line 1099: warning: cyclomatic complexity 26 of function (*tavorParser).selectTokenAttribute() is high (> 15) (gocyclo)
    • Line 716: warning: cyclomatic complexity 22 of function (*tavorParser).parseExpressionTerm() is high (> 15) (gocyclo)
    • Line 1534: warning: cyclomatic complexity 20 of function (*tavorParser).parseTypedTokenDefinition() 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!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell89%

Misspell Finds commonly misspelled English words

    • tavor/reduce/strategy/strategy.go
    • Line 50: warning: "strat" is a misspelling of "start" (misspell)
    • Line 55: warning: "strat" is a misspelling of "start" (misspell)
    • Line 72: warning: "strat" is a misspelling of "start" (misspell)
    • Line 73: warning: "strat" is a misspelling of "start" (misspell)
    • Line 81: warning: "strat" is a misspelling of "start" (misspell)
    • tavor/fuzz/strategy/strategy.go
    • Line 40: warning: "strat" is a misspelling of "start" (misspell)
    • Line 45: warning: "strat" is a misspelling of "start" (misspell)
    • Line 62: warning: "strat" is a misspelling of "start" (misspell)
    • Line 63: warning: "strat" is a misspelling of "start" (misspell)
    • Line 71: warning: "strat" is a misspelling of "start" (misspell)
    • tavor/parser/tavor_test.go
    • Line 161: warning: "nto" is a misspelling of "not" (misspell)
    • Line 165: warning: "nto" is a misspelling of "not" (misspell)
    • Line 169: warning: "nto" is a misspelling of "not" (misspell)
    • Line 305: warning: "concatination" is a misspelling of "contamination" (misspell)
    • Line 351: warning: "concatinated" is a misspelling of "contaminated" (misspell)
    • Line 615: warning: "nto" is a misspelling of "not" (misspell)
    • Line 621: warning: "nto" is a misspelling of "not" (misspell)
    • tavor/token/print.go
    • Line 9: warning: "represenation" is a misspelling of "representation" (misspell)
    • Line 31: warning: "represenation" is a misspelling of "representation" (misspell)
    • tavor/cmd/tavor/main.go
    • Line 426: warning: "strat" is a misspelling of "start" (misspell)
    • Line 438: warning: "strat" is a misspelling of "start" (misspell)
    • Line 826: warning: "strat" is a misspelling of "start" (misspell)
    • Line 938: warning: "strat" is a misspelling of "start" (misspell)
    • Line 1154: warning: "strat" is a misspelling of "start" (misspell)
    • Line 1213: warning: "strat" is a misspelling of "start" (misspell)
    • tavor/token/set.go
    • Line 10: warning: "fullfill" is a misspelling of "fulfill" (misspell)
    • Line 54: warning: "fullfill" is a misspelling of "fulfill" (misspell)
    • Line 63: warning: "fullfill" is a misspelling of "fulfill" (misspell)
    • Line 119: warning: "fullfill" is a misspelling of "fulfill" (misspell)
    • Line 128: warning: "fullfill" is a misspelling of "fulfill" (misspell)
    • Line 184: warning: "fullfill" is a misspelling of "fulfill" (misspell)
    • Line 193: warning: "fullfill" is a misspelling of "fulfill" (misspell)