Preparing report...

Report for github.com/qlik-oss/enigma-go

A+    Excellent!    Found 11 issues across 70 files

Tweet

gofmt98%

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!


gocyclo98%

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.

    • enigma-go/schema/generate.go
    • Line 745: warning: cyclomatic complexity 23 of function main() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 19 of function getTypeName() is high (> 15) (gocyclo)
    • Line 589: warning: cyclomatic complexity 16 of function printRawMethod() is high (> 15) (gocyclo)
    • Line 484: warning: cyclomatic complexity 16 of function printMethod() is high (> 15) (gocyclo)

golint92%

Golint is a linter for Go source code.

    • enigma-go/examples/data/string-expression/string-expression.go
    • Line 18: warning: comment on exported type CustomExpressionProperties should be of the form "CustomExpressionProperties ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported type CustomExpressionLayout should be of the form "CustomExpressionLayout ..." (with optional leading article) (golint)
    • enigma-go/spec/mockapi/mockapi.go
    • Line 7: warning: exported function Dial should have comment or be unexported (golint)
    • Line 11: warning: comment on exported type PublicEmbedded should be of the form "PublicEmbedded ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported method PublicEmbedded.FuncInPublicEmbedded should be of the form "FuncInPublicEmbedded ..." (golint)
    • Line 24: warning: comment on exported type Signature should be of the form "Signature ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported type Obj should be of the form "Obj ..." (with optional leading article) (golint)
    • Line 87: warning: comment on exported type NamedSlice should be of the form "NamedSlice ..." (with optional leading article) (golint)
    • Line 90: warning: exported method Obj.MemberNonPointerReceiver should have comment or be unexported (golint)
    • Line 94: warning: exported type SubObj should have comment or be unexported (golint)
    • Line 97: warning: comment on exported type DepObj should be of the form "DepObj ..." (with optional leading article) (golint)
    • Line 100: warning: comment on exported type ExperimentalObject1 should be of the form "ExperimentalObject1 ..." (with optional leading article) (golint)
    • Line 103: warning: comment on exported type ExperimentalObject2 should be of the form "ExperimentalObject2 ..." (with optional leading article) (golint)
    • Line 107: warning: comment on exported method ExperimentalObject1.ExpMember1 should be of the form "ExpMember1 ..." (golint)
    • Line 113: warning: comment on exported method DepObj.DepMember1 should be of the form "DepMember1 ..." (golint)
    • Line 118: warning: comment on exported method DepObj.DepMember2 should be of the form "DepMember2 ..." (golint)
    • Line 126: warning: comment on exported type PublicEmbeddedInteface should be of the form "PublicEmbeddedInteface ..." (with optional leading article) (golint)
    • Line 134: warning: comment on exported type Interface1 should be of the form "Interface1 ..." (with optional leading article) (golint)
    • Line 142: warning: comment on exported method Obj.Member should be of the form "Member ..." (golint)
    • Line 155: warning: comment on exported type Float32 should be of the form "Float32 ..." (with optional leading article) (golint)
    • Line 158: warning: comment on exported method Float32.AdditionalMethodOnFloat should be of the form "AdditionalMethodOnFloat ..." (golint)
    • enigma-go/schema/generate.go
    • Line 31: warning: exported type OpenRpcFile should have comment or be unexported (golint)
    • Line 39: warning: exported type OpenRpcComponents should have comment or be unexported (golint)
    • Line 43: warning: exported type OpenRpcMethod should have comment or be unexported (golint)
    • Line 51: warning: exported type OpenRpcResult should have comment or be unexported (golint)
    • Line 58: warning: exported type AdditionalProperties should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!