Preparing report...

Report for github.com/gebv/go-dice

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


golint54%

Golint is a linter for Go source code.

    • go-dice/gen/collections/collections.go
    • Line 26: warning: exported type Generator should have comment or be unexported (golint)
    • Line 32: warning: exported type GeneratorConfig should have comment or be unexported (golint)
    • Line 34: warning: exported type GeneratorConfiger should have comment or be unexported (golint)
    • go-dice/gen/collections/stddatabase/generator.go
    • Line 25: warning: exported const NAME should have comment or be unexported (golint)
    • Line 27: warning: exported type Generator should have comment or be unexported (golint)
    • Line 30: warning: exported method Generator.Name should have comment or be unexported (golint)
    • Line 45: warning: exported method Generator.Gen should have comment or be unexported (golint)
    • go-dice/gen/collections/fsmchannelwait/generator.go
    • Line 14: warning: exported type Config should have comment or be unexported (golint)
    • Line 23: warning: exported const NAME should have comment or be unexported (golint)
    • Line 25: warning: exported type Generator should have comment or be unexported (golint)
    • Line 28: warning: exported method Generator.Name should have comment or be unexported (golint)
    • Line 43: warning: exported method Generator.Gen should have comment or be unexported (golint)
    • go-dice/gen/gen_rule.go
    • Line 14: warning: exported type GeneratorRule should have comment or be unexported (golint)
    • Line 21: warning: exported function NewGeneratorRule should have comment or be unexported (golint)
    • Line 30: warning: exported method GeneratorRule.Name should have comment or be unexported (golint)
    • Line 34: warning: comment on exported method GeneratorRule.Match should be of the form "Match ..." (golint)
    • Line 39: warning: exported method GeneratorRule.Gen should have comment or be unexported (golint)
    • Line 45: warning: exported method GeneratorRule.IsValid should have comment or be unexported (golint)
    • go-dice/dice/main.go
    • Line 22: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 23: warning: exported var BUILDATE should have comment or be unexported (golint)
    • go-dice/examples/sqldriver.go
    • Line 49: warning: comment on exported type Struct1 should be of the form "Struct1 ..." (with optional leading article) (golint)
    • Line 59: warning: comment on exported type Struct3 should be of the form "Struct3 ..." (with optional leading article) (golint)
    • Line 61: warning: comment on exported type Struct2 should be of the form "Struct2 ..." (with optional leading article) (golint)
    • Line 82: warning: exported method Struct1.Struct1Fn should have comment or be unexported (golint)
    • Line 86: warning: exported method Struct4.Struct4Fn should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign68%

IneffAssign detects ineffectual assignments in Go code.

    • go-dice/dice/main.go
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: could not import github.com/gebv/go-dice/filepathx (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/gebv/go-dice/gen (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import github.com/gebv/go-dice/parse (invalid package name: "") (ineffassign)
    • go-dice/dice/collections.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/gebv/go-dice/gen/collections/stddatabase (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/gebv/go-dice/gen/collections/fsmchannelwait (invalid package name: "") (ineffassign)
    • go-dice/gen/collections/fsmchannelwait/generator.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/gebv/go-dice/gen/collections (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/gebv/go-dice/parse (invalid package name: "") (ineffassign)
    • Line 5: warning: "go/ast" imported but not used (ineffassign)
    • go-dice/gen/collections/stddatabase/generator.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/gebv/go-dice/gen/collections (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/gebv/go-dice/parse (invalid package name: "") (ineffassign)
    • Line 5: warning: "go/ast" imported but not used (ineffassign)
    • go-dice/gen/gen_rule.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/gebv/go-dice/gen/collections (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/gebv/go-dice/parse (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/gebv/go-dice/gen/collections (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/gebv/go-dice/parse (invalid package name: "") (ineffassign)
    • go-dice/gen/gen_rule_test.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/gebv/go-dice/gen/collections/stddatabase (invalid package name: "") (ineffassign)

misspell90%

Misspell Finds commonly misspelled English words