Preparing report...

Report for github.com/timothyye/ydict

A    Great!    Found 6 issues across 7 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


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!


gocyclo71%

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.

    • ydict/main.go
    • Line 28: warning: cyclomatic complexity 16 of function main() is high (> 15) (gocyclo)

golint28%

Golint is a linter for Go source code.

    • ydict/lib/cache.go
    • Line 17: warning: exported function OpenLocalDB should have comment or be unexported (golint)
    • Line 26: warning: exported function QueryLocalDB should have comment or be unexported (golint)
    • Line 43: warning: exported function ScanWords should have comment or be unexported (golint)
    • Line 67: warning: exported function DeleteWords should have comment or be unexported (golint)
    • Line 82: warning: exported function BackupCahceFiles should have comment or be unexported (golint)
    • Line 98: warning: exported function ClearCahceFiles should have comment or be unexported (golint)
    • Line 132: warning: exported function SaveVoiceFile should have comment or be unexported (golint)
    • Line 167: warning: exported function DoPlayFile should have comment or be unexported (golint)
    • ydict/lib/dict_result.go
    • Line 14: warning: exported type DictResult should have comment or be unexported (golint)
    • Line 27: warning: exported method DictResult.RemoveAudioFile should have comment or be unexported (golint)
    • Line 27: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 38: warning: exported method DictResult.SaveLocalDB should have comment or be unexported (golint)
    • Line 38: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 53: warning: exported method DictResult.Print should have comment or be unexported (golint)
    • Line 53: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • ydict/lib/query.go
    • Line 27: warning: exported type QueryParam should have comment or be unexported (golint)
    • Line 40: warning: exported method QueryParam.DoQuery should have comment or be unexported (golint)
    • Line 40: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 141: warning: exported method QueryParam.ReqWeb should have comment or be unexported (golint)
    • Line 141: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 226: warning: exported method QueryParam.ParseWeb should have comment or be unexported (golint)
    • Line 226: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 266: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 295: warning: exported function ListWords should have comment or be unexported (golint)
    • Line 305: warning: exported function DisplayWords should have comment or be unexported (golint)
    • ydict/lib/utils.go
    • Line 43: warning: exported function IsChinese should have comment or be unexported (golint)
    • Line 52: warning: exported function IsAvailableOS should have comment or be unexported (golint)
    • Line 75: warning: exported function LoadEnv should have comment or be unexported (golint)
    • Line 93: warning: exported function ParseArgs 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!