Preparing report...

Report for github.com/recolude/swagger-unity-codegen

A+    Excellent!    Found 16 issues across 52 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!


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.


golint71%

Golint is a linter for Go source code.

    • swagger-unity-codegen/unitygen/model/property/number.go
    • Line 5: warning: exported type Number should have comment or be unexported (golint)
    • Line 10: warning: exported function NewNumber should have comment or be unexported (golint)
    • Line 17: warning: exported method Number.Name should have comment or be unexported (golint)
    • Line 21: warning: exported method Number.ToVariableType should have comment or be unexported (golint)
    • Line 33: warning: exported method Number.EmptyValue should have comment or be unexported (golint)
    • Line 45: warning: exported method Number.ClassVariables should have comment or be unexported (golint)
    • swagger-unity-codegen/unitygen/model/property/object_reference.go
    • Line 10: warning: exported type ObjectReference should have comment or be unexported (golint)
    • Line 15: warning: exported function NewObjectReference should have comment or be unexported (golint)
    • Line 22: warning: exported method ObjectReference.Name should have comment or be unexported (golint)
    • Line 26: warning: exported method ObjectReference.ToVariableType should have comment or be unexported (golint)
    • Line 30: warning: exported method ObjectReference.EmptyValue should have comment or be unexported (golint)
    • Line 34: warning: exported method ObjectReference.ClassVariables should have comment or be unexported (golint)
    • swagger-unity-codegen/unitygen/path/parameter.go
    • Line 7: warning: exported type ParameterLocation should have comment or be unexported (golint)
    • Line 10: warning: exported const PathParameterLocation should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported function NewParameter should have comment or be unexported (golint)
    • Line 33: warning: exported method Parameter.Name should have comment or be unexported (golint)
    • Line 37: warning: exported method Parameter.Location should have comment or be unexported (golint)
    • Line 41: warning: exported method Parameter.Required should have comment or be unexported (golint)
    • Line 45: warning: exported method Parameter.Schema should have comment or be unexported (golint)
    • swagger-unity-codegen/unitygen/model/property/array.go
    • Line 9: warning: exported type Array should have comment or be unexported (golint)
    • Line 14: warning: exported function NewArray should have comment or be unexported (golint)
    • Line 21: warning: exported method Array.Name should have comment or be unexported (golint)
    • Line 25: warning: exported method Array.Property should have comment or be unexported (golint)
    • Line 29: warning: exported method Array.ToVariableType should have comment or be unexported (golint)
    • Line 33: warning: exported method Array.EmptyValue should have comment or be unexported (golint)
    • Line 37: warning: exported method Array.ClassVariables should have comment or be unexported (golint)
    • swagger-unity-codegen/unitygen/model/property/boolean.go
    • Line 5: warning: exported type Boolean should have comment or be unexported (golint)
    • Line 9: warning: exported function NewBoolean should have comment or be unexported (golint)
    • Line 15: warning: exported method Boolean.Name should have comment or be unexported (golint)
    • Line 19: warning: exported method Boolean.ToVariableType should have comment or be unexported (golint)
    • Line 23: warning: exported method Boolean.EmptyValue should have comment or be unexported (golint)
    • Line 27: warning: exported method Boolean.ClassVariables should have comment or be unexported (golint)
    • swagger-unity-codegen/unitygen/model/property/integer.go
    • Line 5: warning: exported type Integer should have comment or be unexported (golint)
    • Line 10: warning: exported function NewInteger should have comment or be unexported (golint)
    • Line 17: warning: exported method Integer.Name should have comment or be unexported (golint)
    • Line 21: warning: exported method Integer.ToVariableType should have comment or be unexported (golint)
    • Line 29: warning: exported method Integer.EmptyValue should have comment or be unexported (golint)
    • Line 37: warning: exported method Integer.ClassVariables should have comment or be unexported (golint)
    • swagger-unity-codegen/unitygen/model/property/string.go
    • Line 10: warning: exported type String should have comment or be unexported (golint)
    • Line 15: warning: exported function NewString should have comment or be unexported (golint)
    • Line 22: warning: exported method String.Name should have comment or be unexported (golint)
    • Line 26: warning: exported method String.ToVariableType should have comment or be unexported (golint)
    • Line 36: warning: exported method String.EmptyValue should have comment or be unexported (golint)
    • Line 40: warning: exported method String.ClassVariables should have comment or be unexported (golint)
    • swagger-unity-codegen/unitygen/path/path.go
    • Line 52: warning: exported method Path.Parameters should have comment or be unexported (golint)
    • Line 56: warning: exported method Path.OperationID should have comment or be unexported (golint)
    • Line 60: warning: exported method Path.Route should have comment or be unexported (golint)
    • Line 64: warning: exported method Path.Method should have comment or be unexported (golint)
    • Line 68: warning: exported method Path.SecurityReferences should have comment or be unexported (golint)
    • Line 72: warning: exported method Path.Responses 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!