Preparing report...

Report for github.com/viktorasm/gontractor

A    Great!    Found 3 issues across 5 files

Tweet

gofmt80%

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!


gocyclo80%

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.


golint40%

Golint is a linter for Go source code.

    • gontractor/gontractor.go
    • Line 14: warning: exported type Gontractor should have comment or be unexported (golint)
    • Line 22: warning: exported function NewGontractor should have comment or be unexported (golint)
    • Line 63: warning: exported method Gontractor.Execute should have comment or be unexported (golint)
    • gontractor/swagger/swaggerspec.go
    • Line 11: warning: exported type SwaggerSpec should have comment or be unexported (golint)
    • Line 23: warning: exported type SwaggerTypedObject should have comment or be unexported (golint)
    • Line 27: warning: exported type SwaggerParameter should have comment or be unexported (golint)
    • Line 39: warning: exported method SwaggerParameter.GoName should have comment or be unexported (golint)
    • Line 48: warning: exported method SwaggerParameter.InPath should have comment or be unexported (golint)
    • Line 52: warning: exported method SwaggerParameter.InQuery should have comment or be unexported (golint)
    • Line 56: warning: exported method SwaggerParameter.InBody should have comment or be unexported (golint)
    • Line 60: warning: exported method SwaggerParameter.InHeader should have comment or be unexported (golint)
    • Line 64: warning: exported type SwaggerSchema should have comment or be unexported (golint)
    • Line 76: warning: exported method SwaggerSchema.IsRequired should have comment or be unexported (golint)
    • Line 89: warning: exported type SwaggerPathOperation should have comment or be unexported (golint)
    • Line 100: warning: exported method SwaggerPathOperation.MethodCallSignature should have comment or be unexported (golint)
    • Line 112: warning: exported method SwaggerPathOperation.SuccessHttpCode should have comment or be unexported (golint)
    • Line 119: warning: exported method SwaggerPathOperation.HasQueryArguments should have comment or be unexported (golint)
    • Line 128: warning: exported type SwaggerPathOperationResponse should have comment or be unexported (golint)
    • Line 216: warning: exported method SwaggerSpec.FindRefSchema should have comment or be unexported (golint)
    • Line 225: warning: exported function Parse should have comment or be unexported (golint)
    • gontractor/generate/generate.go
    • Line 16: warning: exported type TagGeneratorFunc should have comment or be unexported (golint)
    • Line 18: warning: exported type Generator should have comment or be unexported (golint)
    • Line 28: warning: exported method Generator.SetTagGenerators should have comment or be unexported (golint)
    • Line 40: warning: exported function JsonTags should have comment or be unexported (golint)
    • Line 155: warning: comment on exported method Generator.GenerateApiInterface should be of the form "GenerateApiInterface ..." (golint)
    • Line 225: warning: exported type TemplateData should have comment or be unexported (golint)
    • Line 233: warning: exported method Generator.GenerateServerFromTemplate 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!


misspell80%

Misspell Finds commonly misspelled English words