Preparing report...

Report for github.com/shamaton/zeroformatter

(v1.0.1)

A    Great!    Found 7 issues across 9 files

Tweet

gofmt77%

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!


gocyclo55%

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.

    • serialize.go
    • Line 105: warning: cyclomatic complexity 39 of function (*serializer).calcSize() is high (> 15) (gocyclo)
    • Line 265: warning: cyclomatic complexity 36 of function (*serializer).serialize() is high (> 15) (gocyclo)
    • deserialize.go
    • Line 123: warning: cyclomatic complexity 39 of function (*deserializer).deserialize() is high (> 15) (gocyclo)
    • zf_delay_test.go
    • Line 14: warning: cyclomatic complexity 22 of function TestDelayDeserialize() is high (> 15) (gocyclo)
    • zf_test.go
    • Line 368: warning: cyclomatic complexity 19 of function TestArray() is high (> 15) (gocyclo)
    • Line 115: warning: cyclomatic complexity 18 of function TestPrimitiveUint() is high (> 15) (gocyclo)
    • Line 23: warning: cyclomatic complexity 18 of function TestPrimitiveInt() is high (> 15) (gocyclo)

golint77%

Golint is a linter for Go source code.

    • char/char.go
    • Line 5: warning: exported type Char should have comment or be unexported (golint)
    • datetimeoffset/datetimeoffset.go
    • Line 5: warning: exported type DateTimeOffset should have comment or be unexported (golint)
    • Line 9: warning: exported function Unix should have comment or be unexported (golint)
    • Line 15: warning: exported function Now 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!


misspell66%

Misspell Finds commonly misspelled English words

    • zf_test.go
    • Line 109: warning: "diffrent" is a misspelling of "different" (misspell)
    • Line 200: warning: "diffrent" is a misspelling of "different" (misspell)
    • Line 245: warning: "diffrent" is a misspelling of "different" (misspell)
    • Line 362: warning: "diffrent" is a misspelling of "different" (misspell)