Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
tracefall/driver.go
- Line 12: warning: exported type Driver should have comment or be unexported (golint)
- Line 27: warning: exported function Register should have comment or be unexported (golint)
- Line 58: warning: exported type DB should have comment or be unexported (golint)
- Line 67: warning: exported method DB.Send should have comment or be unexported (golint)
- Line 71: warning: exported method DB.RemoveThread should have comment or be unexported (golint)
- Line 75: warning: exported method DB.RemoveByTags should have comment or be unexported (golint)
- Line 79: warning: exported method DB.GetLog should have comment or be unexported (golint)
- Line 83: warning: exported method DB.GetThread should have comment or be unexported (golint)
- Line 87: warning: exported method DB.Truncate should have comment or be unexported (golint)
- Line 91: warning: exported method DB.Driver should have comment or be unexported (golint)
- Line 95: warning: exported type Connector should have comment or be unexported (golint)
- Line 113: warning: exported function Open should have comment or be unexported (golint)
- Line 128: warning: exported function OpenDB should have comment or be unexported (golint)
-
tracefall/response.go
- Line 7: warning: comment on exported type Responsible should be of the form "Responsible ..." (with optional leading article) (golint)
- Line 18: warning: comment on exported type BaseResponse should be of the form "BaseResponse ..." (with optional leading article) (golint)
- Line 27: warning: exported type ResponseCmd should have comment or be unexported (golint)
- Line 31: warning: exported type ResponseThread should have comment or be unexported (golint)
- Line 36: warning: exported type ResponseLog should have comment or be unexported (golint)
- Line 41: warning: exported method BaseResponse.Success should have comment or be unexported (golint)
- Line 46: warning: exported method BaseResponse.SetError should have comment or be unexported (golint)
- Line 55: warning: exported method BaseResponse.SetID should have comment or be unexported (golint)
- Line 60: warning: exported method BaseResponse.ToCmd should have comment or be unexported (golint)
- Line 64: warning: exported method BaseResponse.ToThread should have comment or be unexported (golint)
- Line 68: warning: exported method BaseResponse.ToLog should have comment or be unexported (golint)
- Line 72: warning: exported method BaseResponse.GenerateID should have comment or be unexported (golint)
- Line 77: warning: exported method BaseResponse.Request should have comment or be unexported (golint)
- Line 81: warning: exported function NewResponse should have comment or be unexported (golint)
-
tracefall/drivers/postgres/driver.go
- Line 14: warning: exported type Params should have comment or be unexported (golint)
- Line 26: warning: exported type DriverPostgres should have comment or be unexported (golint)
- Line 48: warning: exported method DriverPostgres.Send should have comment or be unexported (golint)
- Line 104: warning: exported method DriverPostgres.RemoveThread should have comment or be unexported (golint)
- Line 120: warning: exported method DriverPostgres.RemoveByTags should have comment or be unexported (golint)
- Line 254: warning: exported method DriverPostgres.GetLastRootList should have comment or be unexported (golint)
- Line 273: warning: exported method DriverPostgres.GetLastThreadList should have comment or be unexported (golint)
- Line 294: warning: exported method DriverPostgres.GetThread should have comment or be unexported (golint)
- Line 369: warning: exported method DriverPostgres.GetLog should have comment or be unexported (golint)
- Line 421: warning: comment on exported method DriverPostgres.CreateTable should be of the form "CreateTable ..." (golint)
- Line 451: warning: comment on exported method DriverPostgres.InstallIndex should be of the form "InstallIndex ..." (golint)
- Line 477: warning: comment on exported method DriverPostgres.DropTable should be of the form "DropTable ..." (golint)
- Line 491: warning: exported method DriverPostgres.Truncate should have comment or be unexported (golint)
- Line 510: warning: exported method DriverPostgres.Open should have comment or be unexported (golint)
- Line 517: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 539: warning: exported function GetConnParams should have comment or be unexported (golint)
-
tracefall/drivers/console/driver.go
- Line 8: warning: exported type DriverConsole should have comment or be unexported (golint)
- Line 10: warning: exported method DriverConsole.Send should have comment or be unexported (golint)
- Line 16: warning: exported method DriverConsole.RemoveThread should have comment or be unexported (golint)
- Line 22: warning: exported method DriverConsole.RemoveByTags should have comment or be unexported (golint)
- Line 28: warning: exported method DriverConsole.GetLog should have comment or be unexported (golint)
- Line 33: warning: exported method DriverConsole.GetThread should have comment or be unexported (golint)
- Line 39: warning: exported method DriverConsole.Truncate should have comment or be unexported (golint)
- Line 45: warning: exported method DriverConsole.Open should have comment or be unexported (golint)
- Line 57: warning: exported function GetDefaultConnParams should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!