Preparing report...

Report for github.com/tiziano88/elm-protobuf

A    Great!    Found 5 issues across 6 files

Tweet

gofmt83%

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!


gocyclo83%

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.


golint16%

Golint is a linter for Go source code.

    • elm-protobuf/protoc-gen-elm/message.go
    • Line 46: warning: exported method FileGenerator.GenerateMessageDefinition should have comment or be unexported (golint)
    • Line 106: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 115: warning: exported method FileGenerator.GenerateMessageDecoder should have comment or be unexported (golint)
    • Line 166: warning: exported method FileGenerator.GenerateMessageEncoder should have comment or be unexported (golint)
    • elm-protobuf/protoc-gen-elm/oneof.go
    • Line 5: warning: exported method FileGenerator.GenerateOneofDefinition should have comment or be unexported (golint)
    • Line 39: warning: exported method FileGenerator.GenerateOneofDecoder should have comment or be unexported (golint)
    • Line 75: warning: exported method FileGenerator.GenerateOneofEncoder should have comment or be unexported (golint)
    • elm-protobuf/protoc-gen-elm/enum.go
    • Line 5: warning: exported method FileGenerator.GenerateEnumDefinition should have comment or be unexported (golint)
    • Line 23: warning: exported method FileGenerator.GenerateEnumDecoder should have comment or be unexported (golint)
    • Line 74: warning: exported method FileGenerator.GenerateEnumEncoder should have comment or be unexported (golint)
    • elm-protobuf/protoc-gen-elm/file_generator.go
    • Line 9: warning: exported type FileGenerator should have comment or be unexported (golint)
    • Line 16: warning: exported function NewFileGenerator should have comment or be unexported (golint)
    • Line 23: warning: exported method FileGenerator.In should have comment or be unexported (golint)
    • Line 27: warning: exported method FileGenerator.Out should have comment or be unexported (golint)
    • Line 31: warning: exported method FileGenerator.P should have comment or be unexported (golint)
    • elm-protobuf/protoc-gen-elm/main.go
    • Line 258: warning: exported method FileGenerator.GenerateModule should have comment or be unexported (golint)
    • Line 262: warning: exported method FileGenerator.GenerateComments should have comment or be unexported (golint)
    • Line 270: warning: exported method FileGenerator.GenerateBaseImports should have comment or be unexported (golint)
    • Line 278: warning: exported method FileGenerator.GenerateEverything should have comment or be unexported (golint)
    • Line 391: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign83%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!