Skip to content

Commit

Permalink
scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Apr 12, 2024
1 parent e42abe8 commit 260cf8c
Show file tree
Hide file tree
Showing 32 changed files with 1 addition and 37 deletions.
1 change: 0 additions & 1 deletion modules/activity/src/main/BSONHandlers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import scala.util.Success
import lila.common.{ Iso, LichessDay }
import lila.db.dsl.{ *, given }


import lila.rating.PerfType
import lila.core.rating.RatingProg
import lila.core.rating.Score
Expand Down
1 change: 0 additions & 1 deletion modules/clas/src/main/Env.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.softwaremill.macwire.*

import lila.core.config.*


@Module
@annotation.nowarn("msg=unused")
final class Env(
Expand Down
2 changes: 0 additions & 2 deletions modules/clas/src/main/Student.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package lila.clas
import scalalib.SecureRandom
import reactivemongo.api.bson.Macros.Annotations.Key



import lila.core.perf.UserPerfs
import lila.core.perf.UserWithPerfs

Expand Down
1 change: 0 additions & 1 deletion modules/forum/src/main/ForumCategApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package lila.forum
import scalalib.paginator.*
import lila.db.dsl.{ *, given }


final class ForumCategApi(
postRepo: ForumPostRepo,
topicRepo: ForumTopicRepo,
Expand Down
1 change: 0 additions & 1 deletion modules/forum/src/main/ForumForm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import play.api.data.Forms.*
import lila.common.Form.cleanText
import lila.common.Form.given


final private[forum] class ForumForm(
promotion: lila.core.security.PromotionApi,
val captcha: lila.core.captcha.CaptchaApi
Expand Down
1 change: 0 additions & 1 deletion modules/insight/src/main/JsonQuestion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package lila.insight

import play.api.libs.json.*


case class JsonQuestion(
dimension: String,
metric: String,
Expand Down
1 change: 0 additions & 1 deletion modules/irwin/src/main/KaladinUser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package lila.irwin

import reactivemongo.api.bson.Macros.Annotations.Key


import lila.report.Suspect
import lila.core.perf.PerfId
import lila.rating.PerfType
Expand Down
1 change: 0 additions & 1 deletion modules/lobby/src/main/LobbySocket.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import lila.core.game.ChangeFeatured
import lila.core.socket.{ protocol as P, * }
import lila.core.pool.PoolConfigId


case class LobbyCounters(members: Int, rounds: Int)

final class LobbySocket(
Expand Down
2 changes: 1 addition & 1 deletion modules/lobby/src/main/SeekApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ final class SeekApi(
def forMe(using me: User | UserWithPerfs): Fu[List[Seek]] = for
user <- me match
case u: UserWithPerfs => fuccess(u)
case u: User => perfsRepo.withPerfs(u)
case u: User => perfsRepo.withPerfs(u)
blocking <- relationApi.fetchBlocking(user.id)
seeks <- forUser(LobbyUser.make(user, lila.core.pool.Blocking(blocking)))
yield seeks
Expand Down
1 change: 0 additions & 1 deletion modules/mod/src/main/IpRender.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import lila.core.net.IpAddress
import lila.memo.CacheApi
import lila.core.perm.Granter


object IpRender:

type Raw = String
Expand Down
1 change: 0 additions & 1 deletion modules/mod/src/main/Presets.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import scalalib.Iso
import lila.memo.SettingStore.{ Formable, StringReader }
import lila.core.perm.{ Granter, Permission }


final class ModPresetsApi(settingStore: lila.memo.SettingStore.Builder):

import ModPresets.setting.given
Expand Down
1 change: 0 additions & 1 deletion modules/msg/src/main/MsgJson.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import lila.common.Json.given
import lila.core.LightUser
import lila.core.relation.Relations


final class MsgJson(
lightUserApi: lila.user.LightUserApi,
isOnline: lila.core.socket.IsOnline
Expand Down
1 change: 0 additions & 1 deletion modules/pool/src/main/PoolApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import lila.core.rating.RatingRange
import lila.core.socket.{ Sri, Sris }
import lila.core.pool.{ PoolMember, PoolConfigId, Joiner }


final class PoolApi(
val configs: List[PoolConfig],
hookThieve: HookThieve,
Expand Down
1 change: 0 additions & 1 deletion modules/pool/src/main/PoolConfig.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package lila.pool


import play.api.i18n.Lang
import lila.core.i18n.Translator
import lila.core.pool.PoolConfigId
Expand Down
1 change: 0 additions & 1 deletion modules/puzzle/src/main/JsonView.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import play.api.libs.json.*
import lila.common.Json.{ *, given }
import lila.game.GameRepo


import lila.tree.{ Metas, NewBranch, NewTree }
import lila.core.i18n.{ Translate, Translator, defaultLang }
import chess.format.*
Expand Down
2 changes: 0 additions & 2 deletions modules/puzzle/src/main/PuzzleBatch.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package lila.puzzle

import lila.db.dsl.*



// mobile app
final class PuzzleBatch(colls: PuzzleColls, anonApi: PuzzleAnon, pathApi: PuzzlePathApi)(using
Executor
Expand Down
2 changes: 0 additions & 2 deletions modules/puzzle/src/main/PuzzlePath.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package lila.puzzle
import scalalib.Iso
import lila.db.dsl.{ *, given }



object PuzzlePath:

val sep = '|'
Expand Down
2 changes: 0 additions & 2 deletions modules/puzzle/src/main/PuzzleSelector.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package lila.puzzle

import lila.db.dsl.{ *, given }



final class PuzzleSelector(
colls: PuzzleColls,
pathApi: PuzzlePathApi,
Expand Down
1 change: 0 additions & 1 deletion modules/relay/src/main/JsonView.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import lila.core.config.BaseUrl
import lila.memo.PicfitUrl
import lila.study.ChapterPreview


final class JsonView(
baseUrl: BaseUrl,
markup: RelayMarkup,
Expand Down
1 change: 0 additions & 1 deletion modules/report/src/main/Room.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import cats.derived.*

import scalalib.Iso


enum Room derives Eq:

case Cheat, Boost, Print, Comm, Other, Xfiles
Expand Down
1 change: 0 additions & 1 deletion modules/round/src/main/Messenger.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import lila.chat.{ ChatApi, ChatTimeout }
import lila.game.Game
import lila.core.shutup.PublicSource


final class Messenger(api: ChatApi):

def system(game: Game, message: String): Unit =
Expand Down
1 change: 0 additions & 1 deletion modules/round/src/main/RoundMobile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import lila.game.JsonView.given
import lila.game.{ Game, GameRepo, Pov }
import lila.pref.Pref


object RoundMobile:

enum UseCase(val socketStatus: Option[SocketStatus], val chat: Boolean, val prefs: Boolean):
Expand Down
1 change: 0 additions & 1 deletion modules/security/src/main/DisposableEmailAttempt.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import play.api.data.Form
import lila.core.net.IpAddress
import lila.memo.CacheApi


final class DisposableEmailAttempt(
cacheApi: CacheApi,
disposableApi: DisposableEmailDomain
Expand Down
1 change: 0 additions & 1 deletion modules/security/src/main/GarbageCollector.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import play.api.mvc.RequestHeader
import lila.common.{ Bus, HTTPRequest }
import lila.core.net.IpAddress


// codename UGC
final class GarbageCollector(
userLogins: UserLoginsApi,
Expand Down
1 change: 0 additions & 1 deletion modules/simul/src/main/SimulForm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import play.api.data.validation.Constraint
import lila.common.Form.{ *, given }
import lila.core.team.LightTeam


object SimulForm:

val clockTimeChoices = options((5 to 15 by 5) ++ (20 to 90 by 10) ++ (120 to 180 by 20), "%d minute{s}")
Expand Down
2 changes: 0 additions & 2 deletions modules/study/src/main/actorApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package actorApi

import chess.format.UciPath



case class SaveStudy(study: Study)
case class SetTag(chapterId: StudyChapterId, name: String, value: String):
def tag = chess.format.pgn.Tag(name, lila.common.String.fullCleanUp(value).take(140))
Expand Down
1 change: 0 additions & 1 deletion modules/swiss/src/main/SwissCondition.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import lila.gathering.Condition.*
import lila.gathering.{ Condition, ConditionList }
import lila.core.i18n.{ I18nKey, Translate }


import lila.rating.PerfType
import lila.core.LightUser

Expand Down
1 change: 0 additions & 1 deletion modules/timeline/src/main/Env.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import play.api.Configuration
import lila.common.autoconfig.{ *, given }
import lila.core.config.*


@Module
private class TimelineConfig(
@ConfigName("collection.entry") val entryColl: CollName,
Expand Down
1 change: 0 additions & 1 deletion modules/tournament/src/main/LeaderboardApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import scalalib.paginator.{ AdapterLike, Paginator }

import lila.db.dsl.{ *, given }


import lila.core.perf.PerfId
import lila.rating.PerfType
import lila.core.chess.Rank
Expand Down
1 change: 0 additions & 1 deletion modules/tournament/src/main/TournamentForm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import lila.common.Form.{ *, given }
import lila.gathering.GatheringClock
import lila.core.team.LightTeam


final class TournamentForm:

import TournamentForm.*
Expand Down
1 change: 0 additions & 1 deletion modules/tournament/src/main/crud/CrudApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import lila.db.dsl.*
import lila.db.paginator.Adapter
import lila.tournament.BSONHandlers.given


final class CrudApi(tournamentRepo: TournamentRepo, tourApi: TournamentApi, crudForm: CrudForm):

def list = tournamentRepo.uniques(50)
Expand Down
1 change: 0 additions & 1 deletion modules/tournament/src/main/crud/CrudForm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import play.api.data.Forms.*

import lila.common.Form.*


final class CrudForm(repo: TournamentRepo, forms: TournamentForm):

import CrudForm.*
Expand Down

0 comments on commit 260cf8c

Please sign in to comment.