Preparing report...

Report for github.com/babyname/fate

A+    Excellent!    Found 11 issues across 43 files

Tweet

gofmt88%

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!


gocyclo97%

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.

    • fate/fate.go
    • Line 235: warning: cyclomatic complexity 24 of function (*fateImpl).getWugeName() is high (> 15) (gocyclo)
    • Line 136: warning: cyclomatic complexity 19 of function (*fateImpl).MakeName() is high (> 15) (gocyclo)

golint88%

Golint is a linter for Go source code.

    • fate/cmd/strokefix/check.go
    • Line 14: warning: exported type Dict should have comment or be unexported (golint)
    • Line 24: warning: exported type WuXingFunc should have comment or be unexported (golint)
    • Line 26: warning: exported function CheckLoader should have comment or be unexported (golint)
    • Line 39: warning: exported function CheckVerify should have comment or be unexported (golint)
    • fate/cmd/strokefix/rule.go
    • Line 18: warning: exported function CharChar should have comment or be unexported (golint)
    • Line 46: warning: exported function NumberChar should have comment or be unexported (golint)
    • Line 73: warning: exported function RadicalChar should have comment or be unexported (golint)
    • Line 103: warning: exported function DefaultChar should have comment or be unexported (golint)
    • fate/config/config.go
    • Line 10: warning: exported const JSONName should have comment or be unexported (golint)
    • Line 12: warning: exported type FilterMode should have comment or be unexported (golint)
    • Line 15: warning: exported const FilterModeNormal should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type OutputMode should have comment or be unexported (golint)
    • Line 23: warning: exported const OutputModeLog should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type FileOutput should have comment or be unexported (golint)
    • Line 34: warning: exported type Config should have comment or be unexported (golint)
    • Line 49: warning: exported var DefaultJSONPath should have comment or be unexported (golint)
    • Line 50: warning: exported var DefaultHeads should have comment or be unexported (golint)
    • Line 66: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 81: warning: exported function OutputConfig should have comment or be unexported (golint)
    • Line 90: warning: exported function DefaultConfig should have comment or be unexported (golint)
    • fate/config/database.go
    • Line 3: warning: exported type Database should have comment or be unexported (golint)
    • Line 18: warning: exported method Database.Addr should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!