Preparing report...

Report for github.com/fauna/faunadb-go

A+    Excellent!    Found 14 issues across 38 files

Tweet

gofmt81%

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!


golint84%

Golint is a linter for Go source code.

    • faunadb-go/faunadb/values.go
    • Line 140: warning: exported function NativeClasses should have comment or be unexported (golint)
    • Line 141: warning: exported function NativeCollections should have comment or be unexported (golint)
    • Line 142: warning: exported function NativeIndexes should have comment or be unexported (golint)
    • Line 143: warning: exported function NativeDatabases should have comment or be unexported (golint)
    • Line 144: warning: exported function NativeFunctions should have comment or be unexported (golint)
    • Line 145: warning: exported function NativeRoles should have comment or be unexported (golint)
    • Line 146: warning: exported function NativeKeys should have comment or be unexported (golint)
    • Line 147: warning: exported function NativeTokens should have comment or be unexported (golint)
    • Line 148: warning: exported function NativeCredentials should have comment or be unexported (golint)
    • faunadb-go/faunadb/functions_ref.go
    • Line 612: warning: exported function CurrentIdentity should have comment or be unexported (golint)
    • Line 623: warning: exported function CurrentToken should have comment or be unexported (golint)
    • Line 634: warning: exported function HasCurrentIdentity should have comment or be unexported (golint)
    • Line 645: warning: exported function HasCurrentToken should have comment or be unexported (golint)
    • faunadb-go/faunadb/json.go
    • Line 13: warning: comment on exported function UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • Line 19: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 26: warning: comment on exported function MarshalJSON should be of the form "MarshalJSON ..." (golint)
    • faunadb-go/faunadb/stream_subscription.go
    • Line 66: warning: exported method StreamSubscription.Start should have comment or be unexported (golint)
    • Line 82: warning: exported method StreamSubscription.Close should have comment or be unexported (golint)
    • Line 92: warning: exported method StreamSubscription.StreamEvents should have comment or be unexported (golint)

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!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell89%

Misspell Finds commonly misspelled English words

    • faunadb-go/faunadb/functions_strings.go
    • Line 260: warning: "wtih" is a misspelling of "with" (misspell)
    • Line 276: warning: "wtih" is a misspelling of "with" (misspell)
    • Line 300: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 308: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 326: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 337: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 357: warning: "wtih" is a misspelling of "with" (misspell)
    • Line 430: warning: "wtih" is a misspelling of "with" (misspell)