Preparing report...

Report for github.com/leonardacademy/graphqlc

(v0.2.7)

B    Not bad!    Found 7 issues across 9 files

Tweet

gofmt55%

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


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!


gocyclo88%

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.

    • graphqlc.go
    • Line 100: warning: cyclomatic complexity 17 of function (*Client).RunCtxRet() is high (> 15) (gocyclo)

golint33%

Golint is a linter for Go source code.

    • hasb/hasb_test.go
    • Line 19: warning: don't use underscores in Go names; var alphanum_chars should be alphanumChars (golint)
    • graphqlc.go
    • Line 81: warning: exported method Client.Run should have comment or be unexported (golint)
    • Line 85: warning: exported method Client.RunRet should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.RunCtx should have comment or be unexported (golint)
    • Line 93: warning: comment on exported method Client.RunCtxRet should be of the form "RunCtxRet ..." (golint)
    • subscriptions.go
    • Line 14: warning: exported type SubscriptionEvent should have comment or be unexported (golint)
    • Line 19: warning: exported method Client.Subscribe should have comment or be unexported (golint)
    • hasb/builders.go
    • Line 7: warning: exported function InsertRowRet should have comment or be unexported (golint)
    • Line 30: warning: exported function InsertRow should have comment or be unexported (golint)
    • Line 34: warning: exported function DeleteRow should have comment or be unexported (golint)
    • Line 47: warning: exported function GetRow should have comment or be unexported (golint)
    • Line 60: warning: exported function UpdateRow should have comment or be unexported (golint)
    • hasb/expressions.go
    • Line 5: warning: exported type ExpressionTree should have comment or be unexported (golint)
    • Line 31: warning: exported type ExpressionTreeBuilder should have comment or be unexported (golint)
    • Line 37: warning: exported function NewExpTreeB should have comment or be unexported (golint)
    • Line 43: warning: exported method ExpressionTreeBuilder.Result should have comment or be unexported (golint)
    • Line 47: warning: exported method ExpressionTreeBuilder.Left should have comment or be unexported (golint)
    • Line 55: warning: exported method ExpressionTreeBuilder.Right should have comment or be unexported (golint)
    • Line 64: warning: exported method ExpressionTreeBuilder.Up should have comment or be unexported (golint)
    • Line 69: warning: exported method ExpressionTreeBuilder.Val should have comment or be unexported (golint)
    • Line 74: warning: exported method ExpressionTreeBuilder.LRVal should have comment or be unexported (golint)
    • hasb/hasb.go
    • Line 16: warning: exported type EventPayload should have comment or be unexported (golint)
    • Line 23: warning: exported type EventDetails should have comment or be unexported (golint)
    • Line 29: warning: exported type RowChange should have comment or be unexported (golint)
    • Line 34: warning: exported type TableMetadata should have comment or be unexported (golint)
    • Line 39: warning: exported type EventTrigger should have comment or be unexported (golint)
    • Line 43: warning: exported type QResp should have comment or be unexported (golint)
    • Line 45: warning: exported type MResp should have comment or be unexported (golint)
    • Line 47: warning: exported type MInnerResp should have comment or be unexported (golint)
    • Line 71: warning: exported function GetEventPayload should have comment or be unexported (golint)
    • Line 82: warning: exported type Query should have comment or be unexported (golint)
    • Line 88: warning: exported type GetQuery should have comment or be unexported (golint)
    • Line 92: warning: exported type GetQueryTable should have comment or be unexported (golint)
    • Line 98: warning: exported type MutationQuery should have comment or be unexported (golint)
    • Line 104: warning: exported type DeleteQuery should have comment or be unexported (golint)
    • Line 111: warning: exported type InsertQuery should have comment or be unexported (golint)
    • Line 118: warning: exported type UpdateQuery should have comment or be unexported (golint)
    • Line 140: warning: exported method Query.Request should have comment or be unexported (golint)
    • Line 162: warning: exported method Query.AddGetQueries should have comment or be unexported (golint)
    • Line 171: warning: exported method Query.AddMutationQueries should have comment or be unexported (golint)
    • Line 180: warning: exported method GetQuery.AddTables 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!