Preparing report...

Report for github.com/lytics/confl

A    Great!    Found 8 issues across 17 files

Tweet

gofmt88%

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!


gocyclo76%

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.

    • confl/decode.go
    • Line 356: warning: cyclomatic complexity 26 of function (*MetaData).unifyInt() is high (> 15) (gocyclo)
    • Line 146: warning: cyclomatic complexity 18 of function (*MetaData).unify() is high (> 15) (gocyclo)
    • confl/parse.go
    • Line 156: warning: cyclomatic complexity 22 of function (*parser).processItem() is high (> 15) (gocyclo)

golint76%

Golint is a linter for Go source code.

    • confl/decode.go
    • Line 51: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 55: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 59: warning: exported method Decoder.Decode should have comment or be unexported (golint)
    • Line 68: warning: exported function Unmarshal should have comment or be unexported (golint)
    • confl/encode.go
    • Line 38: warning: comment on exported function Marshal should be of the form "Marshal ..." (golint)
    • Line 417: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • confl/lex.go
    • Line 808: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 871: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • confl/parse.go
    • Line 3: warning: package comment should be of the form "Package confl ..." (golint)
    • Line 69: warning: exported function Parse should have comment or be unexported (golint)
    • Line 177: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 188: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell94%

Misspell Finds commonly misspelled English words

    • confl/lex_test.go
    • Line 69: warning: "seperator" is a misspelling of "separator" (misspell)
    • Line 70: warning: "seperator" is a misspelling of "separator" (misspell)