Preparing report...

Report for github.com/komkom/jsonc

A+    Excellent!    Found 8 issues across 13 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!


golint46%

Golint is a linter for Go source code.

    • jsonc/jsonc/buffer.go
    • Line 9: warning: exported type Buffer should have comment or be unexported (golint)
    • Line 18: warning: exported function NewBuffer should have comment or be unexported (golint)
    • Line 24: warning: exported method Buffer.ReadRune should have comment or be unexported (golint)
    • jsonc/jsonc/decoder.go
    • Line 12: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 18: warning: exported type Options should have comment or be unexported (golint)
    • Line 20: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 36: warning: exported method Decoder.Decode should have comment or be unexported (golint)
    • jsonc/jsonc/error.go
    • Line 5: warning: exported type Error should have comment or be unexported (golint)
    • Line 14: warning: exported method Error.Position should have comment or be unexported (golint)
    • Line 18: warning: exported function Errorf should have comment or be unexported (golint)
    • jsonc/jsonc/filter.go
    • Line 10: warning: exported type TokenType should have comment or be unexported (golint)
    • Line 12: warning: exported type State should have comment or be unexported (golint)
    • Line 17: warning: exported var ErrDontAdvance should have comment or be unexported (golint)
    • Line 20: warning: exported const Root should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type Filter should have comment or be unexported (golint)
    • Line 46: warning: exported function NewFilter should have comment or be unexported (golint)
    • Line 50: warning: exported method Filter.Clear should have comment or be unexported (golint)
    • Line 58: warning: exported method Filter.Done should have comment or be unexported (golint)
    • Line 62: warning: exported method Filter.Err should have comment or be unexported (golint)
    • Line 66: warning: exported type RootState should have comment or be unexported (golint)
    • Line 70: warning: exported method RootState.Type should have comment or be unexported (golint)
    • Line 74: warning: exported method RootState.Next should have comment or be unexported (golint)
    • Line 130: warning: exported type KeyState should have comment or be unexported (golint)
    • Line 134: warning: exported method KeyState.Type should have comment or be unexported (golint)
    • Line 138: warning: exported method KeyState.Next should have comment or be unexported (golint)
    • Line 138: warning: receiver name k should be consistent with previous receiver name o for KeyState (golint)
    • Line 156: warning: exported type ValueState should have comment or be unexported (golint)
    • Line 160: warning: exported method ValueState.Type should have comment or be unexported (golint)
    • Line 164: warning: exported method ValueState.Next should have comment or be unexported (golint)
    • Line 185: warning: exported type KeyNoQuoteState should have comment or be unexported (golint)
    • Line 189: warning: exported method KeyNoQuoteState.Type should have comment or be unexported (golint)
    • Line 193: warning: exported method KeyNoQuoteState.Next should have comment or be unexported (golint)
    • Line 193: warning: receiver name k should be consistent with previous receiver name o for KeyNoQuoteState (golint)
    • Line 225: warning: exported type ValueNoQuoteState should have comment or be unexported (golint)
    • Line 229: warning: exported method ValueNoQuoteState.Type should have comment or be unexported (golint)
    • Line 233: warning: exported method ValueNoQuoteState.Next should have comment or be unexported (golint)
    • Line 233: warning: receiver name v should be consistent with previous receiver name o for ValueNoQuoteState (golint)
    • Line 306: warning: exported type ValueMultilineState should have comment or be unexported (golint)
    • Line 308: warning: exported method ValueMultilineState.Type should have comment or be unexported (golint)
    • Line 312: warning: exported method ValueMultilineState.Next should have comment or be unexported (golint)
    • Line 356: warning: exported type ObjInternalState should have comment or be unexported (golint)
    • Line 359: warning: exported const ObjIntNextAfterComma should have comment (or a comment on this block) or be unexported (golint)
    • Line 366: warning: exported type ObjectState should have comment or be unexported (golint)
    • Line 371: warning: exported method ObjectState.Type should have comment or be unexported (golint)
    • Line 389: warning: exported method ObjectState.Next should have comment or be unexported (golint)
    • Line 518: warning: exported type ArrayInternalState should have comment or be unexported (golint)
    • Line 521: warning: exported const ArrayIntStart should have comment (or a comment on this block) or be unexported (golint)
    • Line 526: warning: exported type ArrayState should have comment or be unexported (golint)
    • Line 533: warning: exported method ArrayState.Type should have comment or be unexported (golint)
    • Line 537: warning: exported method ArrayState.Next should have comment or be unexported (golint)
    • Line 694: warning: exported type CommentState should have comment or be unexported (golint)
    • Line 696: warning: exported method CommentState.Type should have comment or be unexported (golint)
    • Line 700: warning: exported method CommentState.Next should have comment or be unexported (golint)
    • Line 724: warning: exported type CommentMultiLineState should have comment or be unexported (golint)
    • Line 728: warning: exported method CommentMultiLineState.Type should have comment or be unexported (golint)
    • Line 732: warning: exported method CommentMultiLineState.Next should have comment or be unexported (golint)
    • jsonc/jsonc/jsonnumber.go
    • Line 5: warning: exported type NumberState should have comment or be unexported (golint)
    • Line 8: warning: exported const NumberRoot should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported const NonZeroNumbers should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported function IsNumber should have comment or be unexported (golint)
    • jsonc/jsonc/ring.go
    • Line 7: warning: exported type ReadRune should have comment or be unexported (golint)
    • Line 9: warning: exported type Ring should have comment or be unexported (golint)
    • Line 18: warning: exported function NewRing should have comment or be unexported (golint)
    • Line 31: warning: exported method Ring.Clear should have comment or be unexported (golint)
    • Line 41: warning: exported method Ring.Position should have comment or be unexported (golint)
    • Line 45: warning: exported method Ring.Advance should have comment or be unexported (golint)
    • Line 79: warning: exported method Ring.Peek should have comment or be unexported (golint)
    • Line 83: warning: exported method Ring.Pop should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!