Preparing report...

Report for github.com/things-go/ormat

(v0.0.1-rc9)

A+    Excellent!    Found 15 issues across 33 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!


gocyclo90%

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.

    • view/view.go
    • Line 198: warning: cyclomatic complexity 20 of function (*View).fixFieldTags() is high (> 15) (gocyclo)

golint57%

Golint is a linter for Go source code.

    • tpl/tpl.go
    • Line 7: warning: comment on exported var Static should be of the form "Static ..." (golint)
    • view/model.go
    • Line 12: warning: exported const ColumnKeyNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type Tables should have comment or be unexported (golint)
    • Line 65: warning: exported type Columns should have comment or be unexported (golint)
    • view/driver/mysql.go
    • Line 15: warning: exported const Primary should have comment or be unexported (golint)
    • Line 73: warning: exported type MySQL should have comment or be unexported (golint)
    • view/driver/sqlite.go
    • Line 55: warning: exported type SQLite should have comment or be unexported (golint)
    • Line 57: warning: comment on exported method SQLite.GetDatabase should be of the form "GetDatabase ..." (golint)
    • pkg/zapl/default.go
    • Line 12: warning: exported function ReplaceGlobals should have comment or be unexported (golint)
    • Line 16: warning: exported function Desugar should have comment or be unexported (golint)
    • Line 20: warning: exported function With should have comment or be unexported (golint)
    • Line 24: warning: exported function Named should have comment or be unexported (golint)
    • Line 28: warning: exported function Sync should have comment or be unexported (golint)
    • Line 32: warning: exported function Debug should have comment or be unexported (golint)
    • Line 36: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 40: warning: exported function Debugw should have comment or be unexported (golint)
    • Line 44: warning: exported function Info should have comment or be unexported (golint)
    • Line 48: warning: exported function Infof should have comment or be unexported (golint)
    • Line 52: warning: exported function Infow should have comment or be unexported (golint)
    • Line 56: warning: exported function Warn should have comment or be unexported (golint)
    • Line 60: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 64: warning: exported function Warnw should have comment or be unexported (golint)
    • Line 68: warning: exported function Error should have comment or be unexported (golint)
    • Line 72: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 76: warning: exported function Errorw should have comment or be unexported (golint)
    • Line 80: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 84: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 88: warning: exported function Fatalw should have comment or be unexported (golint)
    • Line 92: warning: exported function DPanic should have comment or be unexported (golint)
    • Line 96: warning: exported function DPanicf should have comment or be unexported (golint)
    • Line 100: warning: exported function DPanicw should have comment or be unexported (golint)
    • Line 104: warning: exported function Panic should have comment or be unexported (golint)
    • Line 108: warning: exported function Panicf should have comment or be unexported (golint)
    • Line 112: warning: exported function Panicw should have comment or be unexported (golint)
    • Line 116: warning: exported function JSON should have comment or be unexported (golint)
    • tool/tool.go
    • Line 57: warning: exported function ExecuteCreateSQL should have comment or be unexported (golint)
    • Line 78: warning: exported function GetDbAndViewModel should have comment or be unexported (golint)
    • pkg/database/database.go
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • Line 83: warning: exported function Close should have comment or be unexported (golint)
    • config/config.go
    • Line 60: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 87: warning: exported function GetDatabaseDSNAndDbName should have comment or be unexported (golint)
    • view/view.go
    • Line 22: warning: exported type WebTag should have comment or be unexported (golint)
    • Line 28: warning: exported type Config should have comment or be unexported (golint)
    • view/ast/struct.go
    • Line 32: warning: comment on exported method Struct.GetComment should be of the form "GetComment ..." (golint)
    • Line 65: warning: exported method Struct.BuildTableNameTemplate should have comment or be unexported (golint)
    • Line 80: warning: exported method Struct.BuildColumnNameTemplate should have comment or be unexported (golint)
    • view/ast/template.go
    • Line 29: warning: exported var TableNameTpl should have comment or be unexported (golint)
    • Line 30: warning: exported var ColumnNameTpl should have comment or be unexported (golint)
    • pkg/infra/infra.go
    • Line 9: warning: exported const Version should have comment or be unexported (golint)
    • Line 17: warning: exported function GetExecutableDir should have comment or be unexported (golint)
    • Line 23: warning: exported function GetPkgName 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!