Preparing report...

Report for github.com/mgudov/logic-expression-parser

A+    Excellent!    Found 12 issues across 23 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!


golint52%

Golint is a linter for Go source code.

    • logic-expression-parser/param.go
    • Line 5: warning: exported type Param should have comment or be unexported (golint)
    • Line 11: warning: exported function NewParam should have comment or be unexported (golint)
    • Line 15: warning: exported method Param.Equals should have comment or be unexported (golint)
    • Line 26: warning: exported method Param.Value should have comment or be unexported (golint)
    • logic-expression-parser/values.go
    • Line 9: warning: exported type String should have comment or be unexported (golint)
    • Line 15: warning: exported function NewString should have comment or be unexported (golint)
    • Line 19: warning: exported method String.Equals should have comment or be unexported (golint)
    • Line 30: warning: exported method String.Value should have comment or be unexported (golint)
    • Line 38: warning: exported type Integer should have comment or be unexported (golint)
    • Line 44: warning: exported function NewInteger should have comment or be unexported (golint)
    • Line 48: warning: exported method Integer.Equals should have comment or be unexported (golint)
    • Line 59: warning: exported method Integer.Value should have comment or be unexported (golint)
    • Line 71: warning: exported type Float should have comment or be unexported (golint)
    • Line 77: warning: exported function NewFloat should have comment or be unexported (golint)
    • Line 81: warning: exported method Float.Equals should have comment or be unexported (golint)
    • Line 92: warning: exported method Float.Value should have comment or be unexported (golint)
    • Line 104: warning: exported type Boolean should have comment or be unexported (golint)
    • Line 110: warning: exported function NewBoolean should have comment or be unexported (golint)
    • Line 114: warning: exported method Boolean.Equals should have comment or be unexported (golint)
    • Line 124: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 140: warning: exported method Boolean.Value should have comment or be unexported (golint)
    • Line 144: warning: exported type Null should have comment or be unexported (golint)
    • Line 148: warning: exported function NewNull should have comment or be unexported (golint)
    • Line 152: warning: exported method Null.Equals should have comment or be unexported (golint)
    • Line 161: warning: exported method Null.Value should have comment or be unexported (golint)
    • logic-expression-parser/datetime.go
    • Line 8: warning: exported type DateTime should have comment or be unexported (golint)
    • Line 15: warning: exported function NewDateTime should have comment or be unexported (golint)
    • Line 22: warning: exported method DateTime.Equals should have comment or be unexported (golint)
    • Line 33: warning: exported method DateTime.Value should have comment or be unexported (golint)
    • logic-expression-parser/logic.go
    • Line 18: warning: exported type And should have comment or be unexported (golint)
    • Line 24: warning: exported function NewAnd should have comment or be unexported (golint)
    • Line 36: warning: exported method And.Equals should have comment or be unexported (golint)
    • Line 80: warning: exported type Or should have comment or be unexported (golint)
    • Line 86: warning: exported function NewOr should have comment or be unexported (golint)
    • Line 98: warning: exported method Or.Equals should have comment or be unexported (golint)
    • logic-expression-parser/less_than.go
    • Line 3: warning: exported type LessThan should have comment or be unexported (golint)
    • Line 7: warning: exported function NewLessThan should have comment or be unexported (golint)
    • Line 14: warning: exported method LessThan.Equals should have comment or be unexported (golint)
    • Line 33: warning: exported type LessThanEqual should have comment or be unexported (golint)
    • Line 37: warning: exported function NewLessThanEqual should have comment or be unexported (golint)
    • Line 44: warning: exported method LessThanEqual.Equals should have comment or be unexported (golint)
    • logic-expression-parser/slice.go
    • Line 7: warning: exported type Slice should have comment or be unexported (golint)
    • Line 13: warning: exported function NewSlice should have comment or be unexported (golint)
    • Line 17: warning: exported method Slice.Equals should have comment or be unexported (golint)
    • Line 40: warning: exported method Slice.Value should have comment or be unexported (golint)
    • Line 54: warning: exported type InSlice should have comment or be unexported (golint)
    • Line 61: warning: exported function NewInSlice should have comment or be unexported (golint)
    • Line 68: warning: exported method InSlice.Equals should have comment or be unexported (golint)
    • Line 91: warning: exported type NotInSlice should have comment or be unexported (golint)
    • Line 98: warning: exported function NewNotInSlice should have comment or be unexported (golint)
    • Line 105: warning: exported method NotInSlice.Equals should have comment or be unexported (golint)
    • logic-expression-parser/equals.go
    • Line 3: warning: exported type Equals should have comment or be unexported (golint)
    • Line 7: warning: exported function NewEquals should have comment or be unexported (golint)
    • Line 14: warning: exported method Equals.Equals should have comment or be unexported (golint)
    • Line 33: warning: exported type NotEquals should have comment or be unexported (golint)
    • Line 37: warning: exported function NewNotEquals should have comment or be unexported (golint)
    • Line 44: warning: exported method NotEquals.Equals should have comment or be unexported (golint)
    • logic-expression-parser/errors.go
    • Line 5: warning: exported type ErrIncorrectType should have comment or be unexported (golint)
    • Line 11: warning: exported function NewIncorrectType should have comment or be unexported (golint)
    • Line 23: warning: exported type ErrIncorrectValue should have comment or be unexported (golint)
    • Line 29: warning: exported function NewIncorrectValue should have comment or be unexported (golint)
    • logic-expression-parser/greater_than.go
    • Line 3: warning: exported type GreaterThan should have comment or be unexported (golint)
    • Line 7: warning: exported function NewGreaterThan should have comment or be unexported (golint)
    • Line 14: warning: exported method GreaterThan.Equals should have comment or be unexported (golint)
    • Line 33: warning: exported type GreaterThanEqual should have comment or be unexported (golint)
    • Line 37: warning: exported function NewGreaterThanEqual should have comment or be unexported (golint)
    • Line 44: warning: exported method GreaterThanEqual.Equals should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!