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.
-
simple-matchmaking/types.go
- Line 1: warning: don't use an underscore in package name (golint)
- Line 9: warning: exported type MatchFinishResponse should have comment or be unexported (golint)
- Line 17: warning: exported type TimeOutResponse should have comment or be unexported (golint)
- Line 24: warning: exported type ErrorResponse should have comment or be unexported (golint)
- Line 29: warning: exported function NewMatchFinishResponse should have comment or be unexported (golint)
- Line 39: warning: exported function NewMatchTimeOutResponse should have comment or be unexported (golint)
- Line 50: warning: exported function NewErrorResponse should have comment or be unexported (golint)
-
simple-matchmaking/rules/score_match_rule.go
- Line 7: warning: exported type ScoreMatchRule should have comment or be unexported (golint)
- Line 12: warning: exported function NewScoreMatchRule should have comment or be unexported (golint)
- Line 19: warning: exported method ScoreMatchRule.Match should have comment or be unexported (golint)
- Line 30: warning: exported method ScoreMatchRule.GetName should have comment or be unexported (golint)
-
simple-matchmaking/examples/custom/custom_match_v1.go
- Line 10: warning: exported type CustomFieldMatchRule should have comment or be unexported (golint)
- Line 16: warning: exported function NewCustomFieldMatchRule should have comment or be unexported (golint)
- Line 24: warning: exported method CustomFieldMatchRule.Match should have comment or be unexported (golint)
- Line 38: warning: exported method CustomFieldMatchRule.GetName should have comment or be unexported (golint)
-
simple-matchmaking/store/in_memory.go
- Line 8: warning: exported type InMemory should have comment or be unexported (golint)
- Line 13: warning: exported function NewInMemoryStore should have comment or be unexported (golint)
- Line 19: warning: exported method InMemory.Add should have comment or be unexported (golint)
- Line 27: warning: exported method InMemory.Remove should have comment or be unexported (golint)
- Line 33: warning: exported method InMemory.Get should have comment or be unexported (golint)
- Line 39: warning: exported method InMemory.GetAll should have comment or be unexported (golint)
- Line 45: warning: exported method InMemory.GetName should have comment or be unexported (golint)
-
simple-matchmaking/rules/direct_match_rule.go
- Line 7: warning: exported type DirectMatchRule should have comment or be unexported (golint)
- Line 9: warning: exported method DirectMatchRule.Match should have comment or be unexported (golint)
- Line 13: warning: exported method DirectMatchRule.GetName should have comment or be unexported (golint)
- Line 17: warning: exported function NewDirectMatchRule should have comment or be unexported (golint)
-
simple-matchmaking/server/redcon_server.go
- Line 10: warning: exported type RespServer should have comment or be unexported (golint)
- Line 15: warning: exported function NewRespServer should have comment or be unexported (golint)
- Line 81: warning: exported method RespServer.Publish should have comment or be unexported (golint)
- Line 85: warning: exported method RespServer.AddUser should have comment or be unexported (golint)
- Line 89: warning: exported method RespServer.RemoveUser should have comment or be unexported (golint)
-
simple-matchmaking/matchmaking.go
- Line 1: warning: don't use an underscore in package name (golint)
- Line 12: warning: exported type Matchmaking should have comment or be unexported (golint)
- Line 21: warning: exported function NewMatchmaking should have comment or be unexported (golint)
- Line 31: warning: exported method Matchmaking.Start should have comment or be unexported (golint)
- Line 45: warning: exported method Matchmaking.AddUser should have comment or be unexported (golint)
- Line 49: warning: exported method Matchmaking.RemoveUser should have comment or be unexported (golint)
- Line 53: warning: exported method Matchmaking.RunLoop should have comment or be unexported (golint)
- Line 83: warning: exported method Matchmaking.CanMatch should have comment or be unexported (golint)
- Line 90: warning: exported method Matchmaking.SendMatch 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!