Preparing report...

Report for github.com/fenos/dqlx

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


golint81%

Golint is a linter for Go source code.

    • dqlx/generator.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • dqlx/predicate.go
    • Line 8: warning: exported type DGraphScalar should have comment or be unexported (golint)
    • Line 11: warning: exported var ScalarDefault should have comment or be unexported (golint)
    • Line 22: warning: exported type StringIndexTokenizer should have comment or be unexported (golint)
    • Line 23: warning: exported type DateIndexTokenizer should have comment or be unexported (golint)
    • Line 26: warning: exported var TokenixerExact should have comment or be unexported (golint)
    • Line 38: warning: exported type DGraphPredicate should have comment or be unexported (golint)
    • Line 49: warning: exported method DGraphPredicate.ToString should have comment or be unexported (golint)
    • Line 89: warning: exported type PredicateBuilder should have comment or be unexported (golint)
    • Line 93: warning: exported method PredicateBuilder.Index should have comment or be unexported (golint)
    • Line 98: warning: exported method PredicateBuilder.Upsert should have comment or be unexported (golint)
    • Line 103: warning: exported method PredicateBuilder.List should have comment or be unexported (golint)
    • Line 108: warning: exported method PredicateBuilder.Lang should have comment or be unexported (golint)
    • Line 113: warning: exported method PredicateBuilder.Reverse should have comment or be unexported (golint)
    • Line 118: warning: exported type PredicateStringBuilder should have comment or be unexported (golint)
    • Line 122: warning: exported method PredicateStringBuilder.HasIndex should have comment or be unexported (golint)
    • Line 132: warning: exported method PredicateStringBuilder.Index should have comment or be unexported (golint)
    • Line 141: warning: exported method PredicateStringBuilder.IndexExact should have comment or be unexported (golint)
    • Line 145: warning: exported method PredicateStringBuilder.IndexHash should have comment or be unexported (golint)
    • Line 149: warning: exported method PredicateStringBuilder.IndexTerm should have comment or be unexported (golint)
    • Line 153: warning: exported method PredicateStringBuilder.IndexFulltext should have comment or be unexported (golint)
    • Line 157: warning: exported method PredicateStringBuilder.IndexTrigram should have comment or be unexported (golint)
    • Line 161: warning: exported type PredicateDateBuilder should have comment or be unexported (golint)
    • Line 165: warning: exported method PredicateDateBuilder.HasIndex should have comment or be unexported (golint)
    • Line 175: warning: exported method PredicateDateBuilder.Index should have comment or be unexported (golint)
    • Line 184: warning: exported method PredicateDateBuilder.IndexYear should have comment or be unexported (golint)
    • Line 188: warning: exported method PredicateDateBuilder.IndexMonth should have comment or be unexported (golint)
    • Line 192: warning: exported method PredicateDateBuilder.IndexDay should have comment or be unexported (golint)
    • Line 196: warning: exported method PredicateDateBuilder.IndexHour should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!