Preparing report...

Report for github.com/yuuki/gokc

A+    Excellent!    Found 2 issues across 6 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!


gocyclo83%

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.


golint66%

Golint is a linter for Go source code.

    • gokc/log/log.go
    • Line 7: warning: exported var IsDebug should have comment or be unexported (golint)
    • Line 8: warning: exported var IsVerbose should have comment or be unexported (golint)
    • Line 14: warning: exported function Debug should have comment or be unexported (golint)
    • Line 20: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 26: warning: exported function Verbose should have comment or be unexported (golint)
    • Line 32: warning: exported function Verbosef should have comment or be unexported (golint)
    • Line 38: warning: exported function Info should have comment or be unexported (golint)
    • Line 42: warning: exported function Infof should have comment or be unexported (golint)
    • Line 46: warning: exported function Error should have comment or be unexported (golint)
    • Line 50: warning: exported function Errorf should have comment or be unexported (golint)
    • gokc/parser/lexer.go
    • Line 20: warning: exported const EOF should have comment (or a comment on this block) or be unexported (golint)
    • Line 181: warning: exported type Tokenizer should have comment or be unexported (golint)
    • Line 186: warning: exported function NewTokenizer should have comment or be unexported (golint)
    • Line 195: warning: exported method Tokenizer.NextAll should have comment or be unexported (golint)
    • Line 339: warning: exported type Token should have comment or be unexported (golint)
    • Line 346: warning: exported type Lexer should have comment or be unexported (golint)
    • Line 352: warning: exported type Error should have comment or be unexported (golint)
    • Line 363: warning: exported function NewLexer should have comment or be unexported (golint)
    • Line 380: warning: exported method Lexer.Lex should have comment or be unexported (golint)
    • Line 398: warning: exported function Parse should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign83%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!