Preparing report...

Report for github.com/dcu/gin-scaffold

B    Not bad!    Found 10 issues across 11 files

Tweet

gofmt81%

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!


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!


golint18%

Golint is a linter for Go source code.

    • gin-scaffold/command/help_command.go
    • Line 7: warning: exported type HelpCommand should have comment or be unexported (golint)
    • Line 10: warning: exported method HelpCommand.Help should have comment or be unexported (golint)
    • Line 22: warning: exported method HelpCommand.Execute should have comment or be unexported (golint)
    • gin-scaffold/command/scaffold_command.go
    • Line 10: warning: exported type ScaffoldCommand should have comment or be unexported (golint)
    • Line 13: warning: exported method ScaffoldCommand.Help should have comment or be unexported (golint)
    • Line 25: warning: exported method ScaffoldCommand.Execute should have comment or be unexported (golint)
    • gin-scaffold/command/controller_command.go
    • Line 12: warning: exported type ControllerCommand should have comment or be unexported (golint)
    • Line 24: warning: exported method ControllerCommand.Help should have comment or be unexported (golint)
    • Line 36: warning: exported method ControllerCommand.Execute should have comment or be unexported (golint)
    • gin-scaffold/command/init_command.go
    • Line 23: warning: exported type InitCommand should have comment or be unexported (golint)
    • Line 30: warning: exported method InitCommand.Help should have comment or be unexported (golint)
    • Line 42: warning: exported method InitCommand.Execute should have comment or be unexported (golint)
    • gin-scaffold/template/builder.go
    • Line 83: warning: exported type Builder should have comment or be unexported (golint)
    • Line 88: warning: exported function NewBuilder should have comment or be unexported (golint)
    • Line 102: warning: exported method Builder.Template should have comment or be unexported (golint)
    • Line 117: warning: exported method Builder.WriteToPath should have comment or be unexported (golint)
    • Line 133: warning: exported method Builder.InsertAfterToPath should have comment or be unexported (golint)
    • gin-scaffold/template/loader.go
    • Line 10: warning: exported function LoadTemplate should have comment or be unexported (golint)
    • Line 14: warning: exported function LoadTemplateFromFile should have comment or be unexported (golint)
    • Line 24: warning: exported function PackageName should have comment or be unexported (golint)
    • Line 36: warning: exported function ImportPath should have comment or be unexported (golint)
    • Line 54: warning: exported function TemplatePath should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!