Skip to content

Commit

Permalink
Merge pull request #65 from ImaginativeShohag/update-actions
Browse files Browse the repository at this point in the history
fix ktlint issues
  • Loading branch information
ImaginativeShohag authored Dec 30, 2024
2 parents bee5369 + ea61f6d commit 2f245a1
Show file tree
Hide file tree
Showing 31 changed files with 329 additions and 312 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ktlint_with_reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
ktlint_version: 1.3.1
custom_rule_path: spotless/ktlint/ktlint-compose-0.4.5-all.jar
ktlint_version: 1.4.1
custom_rule_path: spotless/ktlint/ktlint-compose-0.4.22-all.jar
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ sealed class UIsScreen(val route: String) {
data object UiMapView : UIsScreen("ui/mapview")
data object UiMapViewDetails : UIsScreen("ui/mapview/details?item={item}") {
const val PARAM_ITEM = "item"
fun createRoute(item: MapPlace) =
route.replace("{$PARAM_ITEM}", item.getJsonFromObj() ?: "")
fun createRoute(item: MapPlace) = route.replace("{$PARAM_ITEM}", item.getJsonFromObj() ?: "")
}

data object UiOtpCodeVerify : UIsScreen("ui/otpcodeverify")
Expand Down Expand Up @@ -253,8 +252,7 @@ sealed class TutorialsScreen(val route: String) {
data object TutorialNavDataPassScreen1 :
TutorialsScreen("tutorial/nav-data-pass/one/{data}") {
const val PARAM_DATA = "data"
fun createRoute(item: DemoData) =
route.replace("{$PARAM_DATA}", item.getJsonFromObj() ?: "")
fun createRoute(item: DemoData) = route.replace("{$PARAM_DATA}", item.getJsonFromObj() ?: "")
}

data object TutorialNavDataPassScreen2 : TutorialsScreen("tutorial/nav-data-pass/two") {
Expand All @@ -266,10 +264,9 @@ sealed class TutorialsScreen(val route: String) {
const val PARAM_ID = "id"
const val PARAM_NAME = "name"

fun createRoute(id: Int, name: String) =
route
.replace("{$PARAM_ID}", "$id")
.replace("{$PARAM_NAME}", name)
fun createRoute(id: Int, name: String) = route
.replace("{$PARAM_ID}", "$id")
.replace("{$PARAM_NAME}", name)
}

data object TutorialNavDataPassScreen4 :
Expand All @@ -280,9 +277,8 @@ sealed class TutorialsScreen(val route: String) {
const val ARG_NAME = "name"
const val ARG_RANKS = "ranks"

fun createRoute(id: Int) =
route
.replace("{$PARAM_ID}", "$id")
fun createRoute(id: Int) = route
.replace("{$PARAM_ID}", "$id")
}

data object TutorialNavDataPassScreen5 :
Expand Down
Loading

0 comments on commit 2f245a1

Please sign in to comment.