Preparing report...

Report for github.com/spatialcurrent/go-simple-serializer

A+    Excellent!    Found 82 issues across 240 files

Tweet

gofmt94%

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!


gocyclo93%

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.

    • go-simple-serializer/pkg/serializer/Serializer.go
    • Line 153: warning: cyclomatic complexity 39 of function NewWithOptions() is high (> 15) (gocyclo)
    • Line 543: warning: cyclomatic complexity 23 of function (*Serializer).Serialize() is high (> 15) (gocyclo)
    • Line 438: warning: cyclomatic complexity 17 of function (*Serializer).Deserialize() is high (> 15) (gocyclo)

golint77%

Golint is a linter for Go source code.

    • go-simple-serializer/pkg/cli/cli.go
    • Line 17: warning: exported const FlagNoStream should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported const FlagInputURI should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported const FlagOutputURI should have comment (or a comment on this block) or be unexported (golint)
    • go-simple-serializer/pkg/serializer/Serializer.go
    • Line 35: warning: exported const NoSkip should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported const FormatBSON should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported var Formats should have comment or be unexported (golint)
    • Line 100: warning: comment on exported var MarshalFuncs should be of the form "MarshalFuncs ..." (golint)
    • go-simple-serializer/pkg/gssjs/gssjs.go
    • Line 17: warning: exported const NoLimit should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported var ErrMissingInputString should have comment or be unexported (golint)
    • Line 28: warning: exported var DeserializeDefaults should have comment or be unexported (golint)
    • go-simple-serializer/pkg/toml/toml.go
    • Line 19: warning: exported var DefaultType should have comment or be unexported (golint)
    • Line 23: warning: exported var ErrEmptyInput should have comment or be unexported (golint)
    • Line 24: warning: comment on exported var ErrNilObject should be of the form "ErrNilObject ..." (golint)
    • go-simple-serializer/pkg/sv/sv.go
    • Line 16: warning: exported const Wildcard should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported var DefaultType should have comment or be unexported (golint)
    • go-simple-serializer/pkg/cli/output/output.go
    • Line 16: warning: exported const FlagOutputURI should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported var ErrMissingOutputKeyValueSeparator should have comment or be unexported (golint)
    • Line 58: warning: exported var DefaultOutputHeader should have comment or be unexported (golint)
    • go-simple-serializer/pkg/sv/Writer.go
    • Line 22: warning: exported type Writer should have comment or be unexported (golint)
    • Line 64: warning: exported method Writer.WriteHeader should have comment or be unexported (golint)
    • Line 81: warning: exported method Writer.ToRow should have comment or be unexported (golint)
    • Line 85: warning: exported method Writer.WriteObject should have comment or be unexported (golint)
    • Line 123: warning: exported method Writer.WriteObjects should have comment or be unexported (golint)
    • Line 141: warning: exported method Writer.Flush should have comment or be unexported (golint)
    • go-simple-serializer/pkg/cli/input/input.go
    • Line 16: warning: exported const FlagInputURI should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported var ErrMissingInputKeyValueSeparator should have comment or be unexported (golint)
    • Line 48: warning: exported var DefaultInputHeader should have comment or be unexported (golint)
    • go-simple-serializer/pkg/sv/Row.go
    • Line 14: warning: exported type Row should have comment or be unexported (golint)
    • Line 16: warning: exported method Row.Index should have comment or be unexported (golint)
    • Line 25: warning: exported method Row.Sort should have comment or be unexported (golint)
    • Line 34: warning: exported method Row.Transform should have comment or be unexported (golint)
    • Line 42: warning: exported method Row.FillRight 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!


misspell98%

Misspell Finds commonly misspelled English words