Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
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!
Golint is a linter for Go source code.
-
StopBus_Server/fcm.go
- Line 22: warning: exported function GetOutAlert should have comment or be unexported (golint)
- Line 33: warning: exported function GetInAlertUsingUUID should have comment or be unexported (golint)
-
StopBus_Server/handler.go
- Line 40: warning: exported type StopInput should have comment or be unexported (golint)
- Line 41: warning: exported type GapInput should have comment or be unexported (golint)
- Line 56: warning: exported type OnlyStationIDInput should have comment or be unexported (golint)
- Line 59: warning: exported type User should have comment or be unexported (golint)
- Line 64: warning: exported type Reserv should have comment or be unexported (golint)
- Line 71: warning: exported type GetInfo should have comment or be unexported (golint)
- Line 76: warning: exported type IsGoInfo should have comment or be unexported (golint)
- Line 81: warning: exported type StarInfo should have comment or be unexported (golint)
- Line 85: warning: exported type StationInfo should have comment or be unexported (golint)
- Line 185: warning: exported function DriverStopHandler should have comment or be unexported (golint)
- Line 222: warning: exported function UserRegisterHandler should have comment or be unexported (golint)
- Line 247: warning: exported function StarInfoHandler should have comment or be unexported (golint)
- Line 413: warning: exported function ReservGetInHandler should have comment or be unexported (golint)
- Line 469: warning: exported function ReservGetOutHandler should have comment or be unexported (golint)
- Line 514: warning: exported function IsGoHandler should have comment or be unexported (golint)
- Line 536: warning: exported function ReservPanelHandler should have comment or be unexported (golint)
- Line 564: warning: exported function StationNameHandler should have comment or be unexported (golint)
- Line 587: warning: exported function StationDirectHandler should have comment or be unexported (golint)
-
StopBus_Server/server.go
- Line 9: warning: exported type Server should have comment or be unexported (golint)
- Line 11: warning: exported method Server.Run should have comment or be unexported (golint)
-
StopBus_Server/db.go
- Line 10: warning: exported type GetType should have comment or be unexported (golint)
- Line 13: warning: exported const GetIn should have comment (or a comment on this block) or be unexported (golint)
-
StopBus_Server/fake.go
- Line 14: warning: exported type FakeBus should have comment or be unexported (golint)
- Line 21: warning: exported type FakeBusIntance should have comment or be unexported (golint)
- Line 28: warning: exported method FakeBus.Init should have comment or be unexported (golint)
- Line 49: warning: exported method FakeBus.Run should have comment or be unexported (golint)
- Line 64: warning: exported method FakeBus.GetBusRoute should have comment or be unexported (golint)
- Line 68: warning: exported method FakeBus.GetBusRouteInfo should have comment or be unexported (golint)
- Line 72: warning: exported method FakeBus.GetBusRouteStationList should have comment or be unexported (golint)
- Line 76: warning: exported method FakeBus.GetCurrentBusLocation should have comment or be unexported (golint)
- Line 93: warning: exported method FakeBus.IsInBusList should have comment or be unexported (golint)
- Line 102: warning: exported method FakeBus.GetBusArrival should have comment or be unexported (golint)
-
StopBus_Server/log.go
- Line 11: warning: exported function GetLogFile should have comment or be unexported (golint)
- Line 23: warning: exported function ErrorLogger should have comment or be unexported (golint)
-
StopBus_Server/schedule.go
- Line 87: warning: exported function TargetObserver should have comment or be unexported (golint)
- Line 104: warning: exported function Observer should have comment or be unexported (golint)
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!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Checks whether your project has a LICENSE file.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!