Preparing report...

Report for github.com/inklabs/rangedb

A+    Excellent!    Found 25 issues across 185 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!


gocyclo99%

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.


golint86%

Golint is a linter for Go source code.

    • rangedb/examples/chat/room_commands.go
    • Line 5: warning: exported type OnBoardRoom should have comment or be unexported (golint)
    • Line 11: warning: exported type JoinRoom should have comment or be unexported (golint)
    • Line 16: warning: exported type SendMessageToRoom should have comment or be unexported (golint)
    • Line 22: warning: exported type SendPrivateMessageToRoom should have comment or be unexported (golint)
    • Line 28: warning: exported type RemoveUserFromRoom should have comment or be unexported (golint)
    • Line 34: warning: exported type BanUserFromRoom should have comment or be unexported (golint)
    • rangedb/examples/chat/room_events.go
    • Line 5: warning: exported type RoomWasOnBoarded should have comment or be unexported (golint)
    • Line 11: warning: exported type RoomWasJoined should have comment or be unexported (golint)
    • Line 16: warning: exported type MessageWasSentToRoom should have comment or be unexported (golint)
    • Line 22: warning: exported type PrivateMessageWasSentToRoom should have comment or be unexported (golint)
    • Line 28: warning: exported type UserWasRemovedFromRoom should have comment or be unexported (golint)
    • Line 34: warning: exported type UserWasBannedFromRoom should have comment or be unexported (golint)
    • rangedb/pkg/eventparser/event_parser.go
    • Line 14: warning: exported type PersonalData should have comment or be unexported (golint)
    • Line 20: warning: exported type ParsedEvent should have comment or be unexported (golint)
    • Line 25: warning: exported function GetEvents should have comment or be unexported (golint)
    • rangedb/pkg/rangedbui/ui.go
    • Line 24: warning: comment on exported var StaticAssets should be of the form "StaticAssets ..." (golint)
    • Line 27: warning: comment on exported var Templates should be of the form "Templates ..." (golint)
    • Line 280: warning: exported type RecordEnvelope 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!