Preparing report...

Report for github.com/percolate/charlatan

(v1.0.5)

B    Not bad!    Found 16 issues across 11 files

Tweet

gofmt63%

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!


golint72%

Golint is a linter for Go source code.

    • gensym.go
    • Line 17: warning: exported function Gensym should have comment or be unexported (golint)
    • Line 23: warning: exported type SymbolGenerator should have comment or be unexported (golint)
    • Line 29: warning: exported method SymbolGenerator.Next should have comment or be unexported (golint)
    • Line 34: warning: exported method SymbolGenerator.Reset should have comment or be unexported (golint)
    • model.go
    • Line 31: warning: exported method ImportSet.Add should have comment or be unexported (golint)
    • Line 39: warning: exported method ImportSet.Contains should have comment or be unexported (golint)
    • Line 49: warning: exported method ImportSet.GetRequired should have comment or be unexported (golint)
    • Line 59: warning: exported method ImportSet.RequireByName should have comment or be unexported (golint)
    • Line 373: warning: exported method Method.ParametersDeclaration should have comment or be unexported (golint)
    • Line 388: warning: exported method Method.ResultsDeclaration should have comment or be unexported (golint)
    • Line 403: warning: exported method Method.ParametersReference should have comment or be unexported (golint)
    • Line 418: warning: exported method Method.ResultsReference should have comment or be unexported (golint)
    • Line 433: warning: exported method Method.ParametersSignature should have comment or be unexported (golint)
    • Line 448: warning: exported method Method.ResultsSignature should have comment or be unexported (golint)
    • Line 463: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 473: warning: exported method Identifier.TitleCase should have comment or be unexported (golint)
    • Line 480: warning: exported method Identifier.ParameterFormat should have comment or be unexported (golint)
    • Line 488: warning: exported method Identifier.ReferenceFormat should have comment or be unexported (golint)
    • Line 496: warning: exported method Identifier.FieldFormat should have comment or be unexported (golint)
    • Line 504: warning: exported method Identifier.Signature should have comment or be unexported (golint)
    • Line 512: warning: exported type Type should have comment or be unexported (golint)
    • Line 518: warning: exported type Array should have comment or be unexported (golint)
    • Line 525: warning: exported method Array.ParameterFormat should have comment or be unexported (golint)
    • Line 535: warning: exported method Array.ReferenceFormat should have comment or be unexported (golint)
    • Line 539: warning: exported method Array.FieldFormat should have comment or be unexported (golint)
    • Line 549: warning: exported type Map should have comment or be unexported (golint)
    • Line 556: warning: exported method Map.ParameterFormat should have comment or be unexported (golint)
    • Line 566: warning: exported method Map.ReferenceFormat should have comment or be unexported (golint)
    • Line 570: warning: exported method Map.FieldFormat should have comment or be unexported (golint)
    • Line 580: warning: exported type Ellipsis should have comment or be unexported (golint)
    • Line 586: warning: exported method Ellipsis.ParameterFormat should have comment or be unexported (golint)
    • Line 596: warning: exported method Ellipsis.ReferenceFormat should have comment or be unexported (golint)
    • Line 600: warning: exported method Ellipsis.FieldFormat should have comment or be unexported (golint)
    • Line 610: warning: exported type Channel should have comment or be unexported (golint)
    • Line 616: warning: exported method Channel.ParameterFormat should have comment or be unexported (golint)
    • Line 626: warning: exported method Channel.ReferenceFormat should have comment or be unexported (golint)
    • Line 630: warning: exported method Channel.FieldFormat should have comment or be unexported (golint)
    • Line 640: warning: exported type ReceiveChannel should have comment or be unexported (golint)
    • Line 646: warning: exported method ReceiveChannel.ParameterFormat should have comment or be unexported (golint)
    • Line 656: warning: exported method ReceiveChannel.ReferenceFormat should have comment or be unexported (golint)
    • Line 660: warning: exported method ReceiveChannel.FieldFormat should have comment or be unexported (golint)
    • Line 670: warning: exported type SendChannel should have comment or be unexported (golint)
    • Line 676: warning: exported method SendChannel.ParameterFormat should have comment or be unexported (golint)
    • Line 686: warning: exported method SendChannel.ReferenceFormat should have comment or be unexported (golint)
    • Line 690: warning: exported method SendChannel.FieldFormat should have comment or be unexported (golint)
    • Line 700: warning: exported type Pointer should have comment or be unexported (golint)
    • Line 706: warning: exported method Pointer.ParameterFormat should have comment or be unexported (golint)
    • Line 716: warning: exported method Pointer.ReferenceFormat should have comment or be unexported (golint)
    • Line 720: warning: exported method Pointer.FieldFormat should have comment or be unexported (golint)
    • Line 730: warning: exported type BasicType should have comment or be unexported (golint)
    • Line 737: warning: exported method BasicType.ParameterFormat should have comment or be unexported (golint)
    • Line 751: warning: exported method BasicType.ReferenceFormat should have comment or be unexported (golint)
    • Line 755: warning: exported method BasicType.FieldFormat should have comment or be unexported (golint)
    • template.go
    • Line 291: warning: exported type Template should have comment or be unexported (golint)
    • Line 298: warning: exported method Template.Execute should have comment or be unexported (golint)
    • Line 314: warning: exported method Template.NeedsReflect should have comment or be unexported (golint)

gocyclo9%

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.

    • model.go
    • Line 135: warning: cyclomatic complexity 21 of function unwrapExpr() is high (> 15) (gocyclo)
    • Line 288: warning: cyclomatic complexity 20 of function unwrapType() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell81%

Misspell Finds commonly misspelled English words