Skip to content

Commit

Permalink
fix(backend): resolve lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardPaligot committed Apr 6, 2024
1 parent 2a5ffa5 commit 49621a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ import io.ktor.server.routing.Route
import io.ktor.server.routing.get
import io.ktor.server.routing.post
import io.ktor.server.routing.put
import java.time.Instant
import java.time.LocalDateTime
import java.time.ZoneId
import java.time.ZonedDateTime
import org.gdglille.devfest.backend.NotFoundException
import org.gdglille.devfest.backend.categories.CategoryDao
import org.gdglille.devfest.backend.formats.FormatDao
Expand All @@ -37,6 +33,10 @@ import org.gdglille.devfest.models.inputs.CreatingEventInput
import org.gdglille.devfest.models.inputs.EventInput
import org.gdglille.devfest.models.inputs.FeaturesActivatedInput
import org.gdglille.devfest.models.inputs.LunchMenuInput
import java.time.Instant
import java.time.LocalDateTime
import java.time.ZoneId
import java.time.ZonedDateTime

@Suppress("LongMethod", "LongParameterList", "MagicNumber")
fun Route.registerEventRoutes(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import org.gdglille.devfest.backend.speakers.SpeakerDb
import org.gdglille.devfest.backend.talks.TalkDao
import org.gdglille.devfest.backend.talks.TalkDb

@Suppress("LongParameterList")
class OpenPlannerRepository(
private val openPlannerApi: OpenPlannerApi,
private val eventDao: EventDao,
Expand Down Expand Up @@ -72,6 +73,7 @@ class OpenPlannerRepository(
eventDao.updateAgendaUpdatedAt(event)
}

@Suppress("LongParameterList")
private suspend fun clean(
eventId: String,
categories: List<CategoryDb>,
Expand Down Expand Up @@ -140,7 +142,10 @@ class OpenPlannerRepository(
}

private suspend fun createOrMergeSchedule(
eventId: String, order: Int, session: SessionOP, tracks: List<TrackOP>
eventId: String,
order: Int,
session: SessionOP,
tracks: List<TrackOP>
): ScheduleDb {
val item = session.convertToScheduleDb(order, tracks)
scheduleItemDao.createOrUpdate(eventId, item)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import org.gdglille.devfest.backend.schedulers.ScheduleItemDao
import org.gdglille.devfest.backend.speakers.SpeakerDao
import org.gdglille.devfest.backend.talks.TalkDao

@Suppress("LongParameterList")
fun Route.registerOpenPlannerRoutes(
openPlannerApi: OpenPlannerApi,
eventDao: EventDao,
Expand Down

0 comments on commit 49621a8

Please sign in to comment.