Preparing report...

Report for github.com/go-courier/gengo

A+    Excellent!    Found 13 issues across 21 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!


gocyclo90%

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.


golint38%

Golint is a linter for Go source code.

    • gengo/pkg/gengo/dump.go
    • Line 18: warning: exported function NewDumper should have comment or be unexported (golint)
    • Line 24: warning: exported type Dumper should have comment or be unexported (golint)
    • Line 28: warning: exported method Dumper.Name should have comment or be unexported (golint)
    • Line 32: warning: exported method Dumper.ReflectTypeLit should have comment or be unexported (golint)
    • Line 36: warning: exported method Dumper.TypesTypeLit should have comment or be unexported (golint)
    • Line 40: warning: exported method Dumper.TypeLit should have comment or be unexported (golint)
    • Line 83: warning: exported type ValueLitOpt should have comment or be unexported (golint)
    • Line 88: warning: exported type ValueLitOptFn should have comment or be unexported (golint)
    • Line 90: warning: exported function OnInterface should have comment or be unexported (golint)
    • Line 96: warning: exported function SubValue should have comment or be unexported (golint)
    • Line 121: warning: exported method Dumper.ValueLit should have comment or be unexported (golint)
    • gengo/pkg/gengo/generator.go
    • Line 8: warning: exported type Generator should have comment or be unexported (golint)
    • Line 16: warning: exported type GeneratorArgs should have comment or be unexported (golint)
    • gengo/pkg/gengo/snippet_writer.go
    • Line 14: warning: exported type SnippetWriter should have comment or be unexported (golint)
    • Line 19: warning: exported function NewSnippetWriter should have comment or be unexported (golint)
    • Line 28: warning: exported type Args should have comment or be unexported (golint)
    • Line 30: warning: exported method SnippetWriter.Render should have comment or be unexported (golint)
    • Line 36: warning: exported function Snippet should have comment or be unexported (golint)
    • Line 42: warning: exported method SnippetWriter.Do should have comment or be unexported (golint)
    • Line 79: warning: exported method SnippetWriter.Println should have comment or be unexported (golint)
    • gengo/pkg/gengo/context.go
    • Line 23: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 36: warning: exported type Context should have comment or be unexported (golint)
    • Line 45: warning: exported method Context.Execute should have comment or be unexported (golint)
    • gengo/pkg/gengo/id.go
    • Line 10: warning: exported function UpperSnakeCase should have comment or be unexported (golint)
    • Line 20: warning: exported function LowerSnakeCase should have comment or be unexported (golint)
    • Line 30: warning: exported function UpperCamelCase should have comment or be unexported (golint)
    • Line 36: warning: exported function LowerCamelCase should have comment or be unexported (golint)
    • gengo/pkg/namer/namer.go
    • Line 7: warning: exported type Namer should have comment or be unexported (golint)
    • Line 11: warning: exported type NameSystems should have comment or be unexported (golint)
    • Line 13: warning: exported type Names should have comment or be unexported (golint)
    • Line 15: warning: exported function NewRawNamer should have comment or be unexported (golint)
    • Line 42: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gengo/pkg/types/function_results.go
    • Line 12: warning: exported type Results should have comment or be unexported (golint)
    • Line 14: warning: exported method Results.Flatten should have comment or be unexported (golint)
    • Line 60: warning: exported type TypeAndValues should have comment or be unexported (golint)
    • Line 76: warning: exported type TypeAndValue should have comment or be unexported (golint)
    • gengo/pkg/types/load.go
    • Line 11: warning: exported const LoadFiles should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported function Load should have comment or be unexported (golint)
    • Line 74: warning: exported type Universe should have comment or be unexported (golint)
    • Line 76: warning: exported method Universe.Package should have comment or be unexported (golint)
    • Line 80: warning: exported method Universe.LocateInPackage should have comment or be unexported (golint)
    • gengo/pkg/types/package.go
    • Line 13: warning: exported type Package should have comment or be unexported (golint)
    • Line 48: warning: exported type ModInfo should have comment or be unexported (golint)
    • gengo/pkg/types/ref.go
    • Line 8: warning: exported type TypeName should have comment or be unexported (golint)
    • Line 17: warning: exported function Ref should have comment or be unexported (golint)
    • gengo/pkg/gengo/register.go
    • Line 5: warning: exported function GetRegisteredGenerators should have comment or be unexported (golint)
    • Line 22: warning: exported function Register 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!