Report for github.com/jirfag/go-queryset

A+    Excellent!    Found 6 issues across 28 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!


golint82%

Golint is a linter for Go source code.

    • go-queryset/internal/queryset/field/field.go
    • Line 12: warning: exported type BaseInfo should have comment or be unexported (golint)
    • Line 22: warning: exported type Info should have comment or be unexported (golint)
    • Line 28: warning: exported method Info.GetPointed should have comment or be unexported (golint)
    • Line 34: warning: exported type InfoGenerator should have comment or be unexported (golint)
    • Line 38: warning: exported type Field should have comment or be unexported (golint)
    • Line 62: warning: exported function NewInfoGenerator should have comment or be unexported (golint)
    • Line 96: warning: exported method InfoGenerator.GenFieldInfo should have comment or be unexported (golint)
    • go-queryset/internal/parser/parser.go
    • Line 26: warning: exported method StructField.Name should have comment or be unexported (golint)
    • Line 30: warning: exported method StructField.Type should have comment or be unexported (golint)
    • Line 34: warning: exported method StructField.Tag should have comment or be unexported (golint)
    • Line 45: warning: exported type Result should have comment or be unexported (golint)
    • Line 51: warning: exported type Structs should have comment or be unexported (golint)
    • Line 53: warning: exported method Structs.ParseFile should have comment or be unexported (golint)
    • go-queryset/internal/queryset/methods/context.go
    • Line 8: warning: exported type QsStructContext should have comment or be unexported (golint)
    • Line 12: warning: exported function NewQsStructContext should have comment or be unexported (golint)
    • Line 22: warning: exported method QsStructContext.FieldCtx 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!


misspell96%

Misspell Finds commonly misspelled English words