Preparing report...

Report for github.com/ystyle/sqlmanager

A    Great!    Found 5 issues across 6 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!


golint33%

Golint is a linter for Go source code.

    • sqlmanager/dynamic_driver.go
    • Line 3: warning: exported type DynamicDriver should have comment or be unexported (golint)
    • Line 7: warning: exported function NewDynamicDriver should have comment or be unexported (golint)
    • Line 11: warning: exported method DynamicDriver.DriverName should have comment or be unexported (golint)
    • Line 15: warning: exported method DynamicDriver.Register should have comment or be unexported (golint)
    • Line 19: warning: exported method DynamicDriver.RegisterWithDescs should have comment or be unexported (golint)
    • Line 27: warning: exported method DynamicDriver.Load should have comment or be unexported (golint)
    • sqlmanager/file_driver.go
    • Line 16: warning: exported type MarkdownDriver should have comment or be unexported (golint)
    • Line 25: warning: exported function NewMarkdownDriver should have comment or be unexported (golint)
    • Line 31: warning: exported function NewMarkdownDriverWithDir should have comment or be unexported (golint)
    • Line 36: warning: exported method MarkdownDriver.DriverName should have comment or be unexported (golint)
    • Line 40: warning: exported method MarkdownDriver.Load should have comment or be unexported (golint)
    • Line 95: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • sqlmanager/manager.go
    • Line 11: warning: exported type SqlManager should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method SqlManager.Use should have comment or be unexported (golint)
    • Line 33: warning: exported method SqlManager.Load should have comment or be unexported (golint)
    • Line 71: warning: exported method SqlManager.RegisterFunc should have comment or be unexported (golint)
    • Line 84: warning: exported type Driver should have comment or be unexported (golint)
    • Line 89: warning: exported type SqlTemple should have comment or be unexported (golint)
    • sqlmanager/render_sql.go
    • Line 10: warning: exported method SqlManager.RenderTPL should have comment or be unexported (golint)
    • Line 18: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 23: warning: exported method SqlManager.RenderTPLUnSave 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!