Preparing report...

Report for github.com/denzel-morris/clex

A+    Excellent!    Found 11 issues across 20 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!


gocyclo100%

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.

No problems detected. Good job!


golint45%

Golint is a linter for Go source code.

    • clex/lex/container/ring_buffer.go
    • Line 5: warning: exported type RingBuffer should have comment or be unexported (golint)
    • Line 10: warning: exported var ErrRingBufferEmpty should have comment or be unexported (golint)
    • Line 12: warning: exported function NewRingBuffer should have comment or be unexported (golint)
    • Line 24: warning: exported method RingBuffer.Top should have comment or be unexported (golint)
    • Line 33: warning: exported method RingBuffer.Push should have comment or be unexported (golint)
    • Line 44: warning: exported method RingBuffer.Pop should have comment or be unexported (golint)
    • clex/lex/lexeme.go
    • Line 9: warning: exported type Lexeme should have comment or be unexported (golint)
    • Line 25: warning: exported method Lexeme.IsNot should have comment or be unexported (golint)
    • Line 29: warning: exported method Lexeme.Is should have comment or be unexported (golint)
    • clex/lex/reader.go
    • Line 5: warning: exported type Reader should have comment or be unexported (golint)
    • Line 22: warning: exported function NewReader should have comment or be unexported (golint)
    • clex/lex/lexemes/types.go
    • Line 3: warning: exported type Type should have comment or be unexported (golint)
    • Line 6: warning: exported const Invalid should have comment (or a comment on this block) or be unexported (golint)
    • clex/cmd/clex/main.go
    • Line 33: warning: exported type LogErrorPolicy should have comment or be unexported (golint)
    • Line 35: warning: exported method LogErrorPolicy.ReportError should have comment or be unexported (golint)
    • clex/lex/lexer.go
    • Line 10: warning: exported type Lexer should have comment or be unexported (golint)
    • Line 21: warning: exported function NewLexer should have comment or be unexported (golint)
    • clex/lex/line_reader.go
    • Line 5: warning: exported type LineReader should have comment or be unexported (golint)
    • Line 17: warning: exported function NewLineReader 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!