Preparing report...

Report for github.com/tkc/sql-dog

A    Great!    Found 15 issues across 22 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!


golint36%

Golint is a linter for Go source code.

    • sql-dog/config/config_linter.go
    • Line 10: warning: exported type LintConfig should have comment or be unexported (golint)
    • Line 15: warning: exported type Table should have comment or be unexported (golint)
    • Line 23: warning: exported method LintConfig.ConvertToValidators should have comment or be unexported (golint)
    • Line 43: warning: exported function ReadLintConfig should have comment or be unexported (golint)
    • sql-dog/config/config.go
    • Line 9: warning: exported type Config should have comment or be unexported (golint)
    • Line 18: warning: exported function ReadConfig should have comment or be unexported (golint)
    • sql-dog/src/usecase/services/emulater_service.go
    • Line 22: warning: exported function NewEmulateService should have comment or be unexported (golint)
    • Line 99: warning: exported function IsStringFieldType should have comment or be unexported (golint)
    • Line 113: warning: exported function IsIntFieldType should have comment or be unexported (golint)
    • Line 121: warning: exported function IsTinyIntFieldType should have comment or be unexported (golint)
    • sql-dog/src/usecase/services/interfaces.go
    • Line 8: warning: exported type AnalyzerService should have comment or be unexported (golint)
    • Line 13: warning: exported type EmulateService should have comment or be unexported (golint)
    • Line 17: warning: exported type ReportService should have comment or be unexported (golint)
    • Line 22: warning: exported type ValidateService should have comment or be unexported (golint)
    • sql-dog/src/usecase/services/visitors.go
    • Line 12: warning: exported type StmtVisitor should have comment or be unexported (golint)
    • Line 17: warning: exported method StmtVisitor.Enter should have comment or be unexported (golint)
    • Line 129: warning: exported method StmtVisitor.Leave should have comment or be unexported (golint)
    • Line 133: warning: exported type TableNameVisitor should have comment or be unexported (golint)
    • Line 141: warning: exported method TableNameVisitor.Enter should have comment or be unexported (golint)
    • Line 155: warning: exported method TableNameVisitor.Leave should have comment or be unexported (golint)
    • Line 159: warning: exported type IsNullExprVisitor should have comment or be unexported (golint)
    • Line 163: warning: exported method IsNullExprVisitor.Enter should have comment or be unexported (golint)
    • Line 172: warning: exported method IsNullExprVisitor.Leave should have comment or be unexported (golint)
    • Line 176: warning: exported type PatternInExprVisitor should have comment or be unexported (golint)
    • Line 180: warning: exported method PatternInExprVisitor.Enter should have comment or be unexported (golint)
    • Line 211: warning: exported method PatternInExprVisitor.Leave should have comment or be unexported (golint)
    • Line 215: warning: exported type OperationExprVisitor should have comment or be unexported (golint)
    • Line 219: warning: exported method OperationExprVisitor.Enter should have comment or be unexported (golint)
    • Line 258: warning: exported method OperationExprVisitor.Leave should have comment or be unexported (golint)
    • sql-dog/src/domain/model/model.go
    • Line 3: warning: exported type Table should have comment or be unexported (golint)
    • Line 8: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 17: warning: exported type AnalyzerOperation should have comment or be unexported (golint)
    • Line 23: warning: exported type Validator should have comment or be unexported (golint)
    • Line 28: warning: exported type ValidatorNode should have comment or be unexported (golint)
    • Line 37: warning: exported type ValidateOperation should have comment or be unexported (golint)
    • Line 42: warning: exported type ValidateColumn should have comment or be unexported (golint)
    • Line 46: warning: exported type Report should have comment or be unexported (golint)
    • Line 51: warning: exported type OpType should have comment or be unexported (golint)
    • Line 53: warning: exported const OpTypeEq should have comment or be unexported (golint)
    • Line 54: warning: exported const OpTypeIn should have comment or be unexported (golint)
    • Line 55: warning: exported const OpTypeLike should have comment or be unexported (golint)
    • Line 57: warning: exported type StmtType should have comment or be unexported (golint)
    • Line 59: warning: exported const StmtTypeInsert should have comment or be unexported (golint)
    • Line 60: warning: exported const StmtTypeSelect should have comment or be unexported (golint)
    • Line 61: warning: exported const StmtTypeUpdate should have comment or be unexported (golint)
    • Line 62: warning: exported const StmtTypeDelete should have comment or be unexported (golint)
    • Line 64: warning: exported type GeneralLog should have comment or be unexported (golint)
    • Line 69: warning: exported type DatabaseDescResult 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!