Preparing report...

Report for github.com/scim2/filter-parser

A+    Excellent!    Found 11 issues across 30 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!


golint63%

Golint is a linter for Go source code.

    • filter-parser/internal/grammar/attrexp.go
    • Line 10: warning: exported function AttrExp should have comment or be unexported (golint)
    • Line 29: warning: exported function AttrName should have comment or be unexported (golint)
    • Line 41: warning: exported function AttrPath should have comment or be unexported (golint)
    • Line 53: warning: exported function CompareOp should have comment or be unexported (golint)
    • Line 71: warning: exported function CompareValue should have comment or be unexported (golint)
    • Line 75: warning: exported function NameChar should have comment or be unexported (golint)
    • Line 79: warning: exported function SubAttr should have comment or be unexported (golint)
    • filter-parser/internal/grammar/number.go
    • Line 10: warning: exported function Digits should have comment or be unexported (golint)
    • Line 22: warning: exported function Exp should have comment or be unexported (golint)
    • Line 41: warning: exported function Frac should have comment or be unexported (golint)
    • Line 54: warning: exported function Int should have comment or be unexported (golint)
    • Line 72: warning: exported function Minus should have comment or be unexported (golint)
    • Line 82: warning: exported function Number should have comment or be unexported (golint)
    • Line 103: warning: exported function Sign should have comment or be unexported (golint)
    • filter-parser/internal/grammar/valuepath.go
    • Line 10: warning: exported function ValueFilter should have comment or be unexported (golint)
    • Line 18: warning: exported function ValueFilterAll should have comment or be unexported (golint)
    • Line 25: warning: exported function ValueFilterNot should have comment or be unexported (golint)
    • Line 41: warning: exported function ValueLogExpAnd should have comment or be unexported (golint)
    • Line 55: warning: exported function ValueLogExpOr should have comment or be unexported (golint)
    • Line 69: warning: exported function ValuePath should have comment or be unexported (golint)
    • filter-parser/internal/grammar/filter.go
    • Line 10: warning: exported function Filter should have comment or be unexported (golint)
    • Line 14: warning: exported function FilterAnd should have comment or be unexported (golint)
    • Line 30: warning: exported function FilterNot should have comment or be unexported (golint)
    • Line 42: warning: exported function FilterOr should have comment or be unexported (golint)
    • Line 58: warning: exported function FilterParentheses should have comment or be unexported (golint)
    • Line 68: warning: exported function FilterValue should have comment or be unexported (golint)
    • filter-parser/internal/grammar/string.go
    • Line 10: warning: exported function Character should have comment or be unexported (golint)
    • Line 22: warning: exported function Escaped should have comment or be unexported (golint)
    • Line 46: warning: exported function String should have comment or be unexported (golint)
    • Line 62: warning: exported function Unescaped 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!