models/game.go
Function CreateGame
has 95 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func CreateGame(
db DB,
publicID, name string,
levels, metadata map[string]interface{},
minLevelAccept, minLevelCreate, minLevelRemove,
Function CreateGame
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
db DB,
publicID, name string,
levels, metadata map[string]interface{},
minLevelAccept, minLevelCreate, minLevelRemove,
minOffsetRemove, minOffsetPromote, minOffsetDemote, maxMembers,
Function UpdateGame
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
db DB, publicID, name string, levels, metadata map[string]interface{},
minLevelAccept, minLevelCreate, minLevelRemove, minOffsetRemove, minOffsetPromote,
minOffsetDemote, maxMembers, maxClans, cooldownAfterDeny, cooldownAfterDelete,
cooldownBeforeApply, cooldownBeforeInvite, maxPendingInvites int,
clanUpdateMetadataFieldsHookTriggerWhitelist string,