Preparing report...

Report for github.com/gelleson/gcsv

A+    Excellent!    Found 10 issues across 14 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!


golint28%

Golint is a linter for Go source code.

    • gcsv/pkg/datatypes/numbers.go
    • Line 33: warning: exported const INTEGER_NUMBER should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type NumberBuilder should have comment or be unexported (golint)
    • Line 43: warning: exported function NewNumberBuilder should have comment or be unexported (golint)
    • Line 47: warning: exported method NumberBuilder.Initiate should have comment or be unexported (golint)
    • Line 81: warning: exported method NumberBuilder.Build should have comment or be unexported (golint)
    • Line 85: warning: exported method NumberBuilder.Validate should have comment or be unexported (golint)
    • gcsv/pkg/datatypes/sequence.go
    • Line 31: warning: exported type SequenceBuilder should have comment or be unexported (golint)
    • Line 36: warning: exported function NewSequenceBuilder should have comment or be unexported (golint)
    • Line 40: warning: exported method SequenceBuilder.Initiate should have comment or be unexported (golint)
    • Line 63: warning: exported method SequenceBuilder.Validate should have comment or be unexported (golint)
    • Line 67: warning: exported method SequenceBuilder.Build should have comment or be unexported (golint)
    • gcsv/pkg/datatypes/names.go
    • Line 31: warning: exported const FIRST_NAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported type HumanNameBuilder should have comment or be unexported (golint)
    • Line 41: warning: exported function NewHumanNameBuilder should have comment or be unexported (golint)
    • Line 45: warning: exported method HumanNameBuilder.Validate should have comment or be unexported (golint)
    • Line 65: warning: exported method HumanNameBuilder.Initiate should have comment or be unexported (golint)
    • Line 78: warning: exported method HumanNameBuilder.Build should have comment or be unexported (golint)
    • gcsv/pkg/generator/generator.go
    • Line 32: warning: exported type Generator should have comment or be unexported (golint)
    • Line 36: warning: exported function NewGenerator should have comment or be unexported (golint)
    • Line 115: warning: exported method Generator.Generate should have comment or be unexported (golint)
    • gcsv/pkg/generator/models.go
    • Line 25: warning: exported type Document should have comment or be unexported (golint)
    • Line 32: warning: exported function NewDocument should have comment or be unexported (golint)
    • Line 36: warning: exported type Builder should have comment or be unexported (golint)
    • Line 42: warning: exported type Field should have comment or be unexported (golint)
    • Line 46: warning: exported type Column should have comment or be unexported (golint)
    • gcsv/pkg/generator/types.go
    • Line 25: warning: exported type TYPE should have comment or be unexported (golint)
    • Line 28: warning: exported const INT should have comment (or a comment on this block) or be unexported (golint)
    • gcsv/pkg/datatypes/dates.go
    • Line 33: warning: exported type DateBuilder should have comment or be unexported (golint)
    • Line 42: warning: exported function NewDateBuilder should have comment or be unexported (golint)
    • Line 55: warning: exported method DateBuilder.Initiate should have comment or be unexported (golint)
    • Line 71: warning: exported method DateBuilder.Build should have comment or be unexported (golint)
    • Line 87: warning: exported method DateBuilder.Validate 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!