perf/main.go
Function createClans
has 60 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func createClans(db models.DB, games []string, clans int, progress func() bool) map[string][]clanData {
for _, game := range games {
sql := `
WITH owner AS (
INSERT INTO players(
Function createClanPlayers
has 56 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func createClanPlayers(db models.DB, games []string, clans map[string][]clanData, playersPerClan int, approved, denied, banned bool, progress func() bool) {
for _, game := range games {
for _, clan := range clans[game] {
sql := `
WITH addedPlayers AS (
Function createClanPlayers
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func createClanPlayers(db models.DB, games []string, clans map[string][]clanData, playersPerClan int, approved, denied, banned bool, progress func() bool) {