Preparing report...

Report for github.com/b2wdigital/restQL-golang

A+    Excellent!    Found 10 issues across 98 files

Tweet

gofmt97%

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!


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!


golint90%

Golint is a linter for Go source code.

    • restQL-golang/test/test.go
    • Line 18: warning: exported function Unmarshal should have comment or be unexported (golint)
    • Line 41: warning: exported function Equal should have comment or be unexported (golint)
    • Line 47: warning: exported function NotEqual should have comment or be unexported (golint)
    • Line 53: warning: exported function VerifyError should have comment or be unexported (golint)
    • Line 59: warning: exported type MockServer should have comment or be unexported (golint)
    • Line 65: warning: exported function NewMockServer should have comment or be unexported (golint)
    • Line 72: warning: exported method MockServer.Start should have comment or be unexported (golint)
    • Line 86: warning: exported method MockServer.Mux should have comment or be unexported (golint)
    • Line 90: warning: exported method MockServer.Server should have comment or be unexported (golint)
    • Line 94: warning: exported method MockServer.Teardown should have comment or be unexported (golint)
    • Line 99: warning: exported var NoOpLogger should have comment or be unexported (golint)
    • restQL-golang/internal/domain/function.go
    • Line 20: warning: exported type Arg should have comment or be unexported (golint)
    • Line 77: warning: comment on exported method JSON.Arguments should be of the form "Arguments ..." (golint)
    • Line 127: warning: exported const MatchArgRegex should have comment or be unexported (golint)
    • Line 260: warning: comment on exported type FilterByRegex should be of the form "FilterByRegex ..." (with optional leading article) (golint)
    • Line 268: warning: exported const FilterByRegexArgRegex should have comment (or a comment on this block) or be unexported (golint)
    • Line 272: warning: exported function NewFilterByRegex should have comment or be unexported (golint)
    • Line 325: warning: comment on exported type AsQuery should be of the form "AsQuery ..." (with optional leading article) (golint)
    • restQL-golang/pkg/restql/http.go
    • Line 13: warning: comment on exported type HTTPRequest should be of the form "HTTPRequest ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported type HTTPResponse should be of the form "HTTPResponse ..." (with optional leading article) (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!