api/membership_helpers.go
Function dispatchApproveDenyMembershipHook
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func dispatchApproveDenyMembershipHook(app *App, db models.DB, hookType int, gameID string, clan *models.Clan, player *models.Player, requestor *models.Player, creator *models.Player, message, playerMembershipLevel string) error {
Function dispatchMembershipHook
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func dispatchMembershipHook(app *App, db models.DB, hookType int, gameID string, clan *models.Clan, player *models.Player, requestor *models.Player, message, membershipLevel string) error {
Function dispatchApproveDenyMembershipHookByID
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func dispatchApproveDenyMembershipHookByID(app *App, db models.DB, hookType int, gameID string, clanID, playerID, requestorID, creatorID int64, message, membershipLevel string) error {
Function dispatchMembershipHookByID
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func dispatchMembershipHookByID(app *App, db models.DB, hookType int, gameID string, clanID, playerID, requestorID int64, message, membershipLevel string) error {
Function dispatchApproveDenyMembershipHookByID
has 5 return statements (exceeds 4 allowed). Open
Open
func dispatchApproveDenyMembershipHookByID(app *App, db models.DB, hookType int, gameID string, clanID, playerID, requestorID, creatorID int64, message, membershipLevel string) error {
clan, err := models.GetClanByID(db, clanID)
if err != nil {
return err
}