Preparing report...

Report for github.com/caudaganesh/go-generator

A+    Excellent!    Found 38 issues across 58 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!


gocyclo100%

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.

No problems detected. Good job!


golint34%

Golint is a linter for Go source code.

    • go-generator/generator/unittest/receiver_field.go
    • Line 12: warning: exported type ReceiverField should have comment or be unexported (golint)
    • Line 22: warning: exported function NewReceiverField should have comment or be unexported (golint)
    • Line 36: warning: exported method ReceiverField.Set should have comment or be unexported (golint)
    • Line 51: warning: exported method ReceiverField.SetForArray should have comment or be unexported (golint)
    • Line 61: warning: exported method ReceiverField.IsNameCalled should have comment or be unexported (golint)
    • Line 71: warning: exported method ReceiverField.IsFieldMockable should have comment or be unexported (golint)
    • Line 82: warning: exported method ReceiverField.IsSelectorExprMockable should have comment or be unexported (golint)
    • Line 105: warning: exported method ReceiverField.IsIdentMockable should have comment or be unexported (golint)
    • go-generator/types/type.go
    • Line 6: warning: exported const String should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported function IsPrimitives should have comment or be unexported (golint)
    • go-generator/generator/proto/type.go
    • Line 8: warning: exported const String should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported function TransformTypeToPtype should have comment or be unexported (golint)
    • go-generator/config/usecase.go
    • Line 3: warning: exported type UseCaseConfig should have comment or be unexported (golint)
    • Line 10: warning: exported function GetUseCaseConfig should have comment or be unexported (golint)
    • go-generator/runner/file.go
    • Line 10: warning: exported function GetFullPath should have comment or be unexported (golint)
    • Line 18: warning: exported function CreateFile should have comment or be unexported (golint)
    • Line 27: warning: exported function DeleteFile should have comment or be unexported (golint)
    • go-generator/constant/action.go
    • Line 4: warning: exported const GenInterface should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported var MapActionsToPrefix should have comment or be unexported (golint)
    • go-generator/structtype/structtype.go
    • Line 12: warning: exported type StructType should have comment or be unexported (golint)
    • Line 14: warning: exported function GetFromDeclsByName should have comment or be unexported (golint)
    • Line 37: warning: exported method StructType.GetPropToTag should have comment or be unexported (golint)
    • Line 50: warning: exported method StructType.GetPropToType should have comment or be unexported (golint)
    • Line 62: warning: exported method StructType.GetPropToCamel should have comment or be unexported (golint)
    • go-generator/generator/unittest/generator.go
    • Line 13: warning: exported type Options should have comment or be unexported (golint)
    • Line 23: warning: exported type TemplateData should have comment or be unexported (golint)
    • Line 29: warning: exported type CalledMethod should have comment or be unexported (golint)
    • Line 81: warning: exported method Generator.Source should have comment or be unexported (golint)
    • go-generator/generator/interfacegen/generator.go
    • Line 18: warning: exported type Method should have comment or be unexported (golint)
    • Line 23: warning: exported type Options should have comment or be unexported (golint)
    • Line 32: warning: exported function Generate should have comment or be unexported (golint)
    • Line 42: warning: exported method Options.GetFileSetAndDecls should have comment or be unexported (golint)
    • go-generator/config/delivery.go
    • Line 3: warning: exported type DeliveryConfig should have comment or be unexported (golint)
    • Line 13: warning: exported function GetDeliveryConfig should have comment or be unexported (golint)
    • go-generator/config/repo.go
    • Line 3: warning: exported type RepositoryConfig should have comment or be unexported (golint)
    • Line 14: warning: exported const PlaceHolderStyleDollar should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported function GetRepositoryConfig should have comment or be unexported (golint)
    • go-generator/generator/unittest/func.go
    • Line 84: warning: exported method Func.ParseFieldsToNodeString should have comment or be unexported (golint)
    • Line 101: warning: exported method Func.ReceiverFields should have comment or be unexported (golint)
    • Line 118: warning: exported method Func.ParseStarExprToReceiverField should have comment or be unexported (golint)
    • Line 142: warning: exported method Func.HasReceiverFields should have comment or be unexported (golint)
    • Line 146: warning: exported method Func.HasMockableField 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!