Skip to content

Commit

Permalink
fixed linting errors on controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
Gissebass committed Mar 18, 2024
1 parent 3757c07 commit 772d7bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class AlbumController(override val repository: AlbumRepository, val service: Alb
@GetMapping("/getUuidByTitle")
fun getAlbumIdByName(
@RequestParam(
"albumTitle"
) albumTitle: String
"albumTitle",
) albumTitle: String,
): UUID? {
return repository.findUuidByMotive(albumTitle)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ class MotiveController {
@GetMapping("/getUuidByTitle")
fun getAlbumIdByName(
@RequestParam(
"motiveTitle"
) motiveTitle: String
"motiveTitle",
) motiveTitle: String,
): UUID? {
return repository.findUuidByMotive(motiveTitle)
}


@PostMapping
fun create(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ import java.util.UUID
@RestController
@RequestMapping("/places")
open class PlaceController(override val repository: PlaceRepository) : BaseController<Place, PlaceDto, PlacePatchRequestDto>(repository) {

@GetMapping("/getUuidByTitle")

Check failure on line 16 in src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt#L16 <standard:indent>

Unexpected indentation (4) (should be 2)
Raw output
src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt:16:1: error: Unexpected indentation (4) (should be 2) (standard:indent)
fun getUuidByPlace(

Check failure on line 17 in src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt#L17 <standard:indent>

Unexpected indentation (4) (should be 2)
Raw output
src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt:17:1: error: Unexpected indentation (4) (should be 2) (standard:indent)
@RequestParam(

Check failure on line 18 in src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt#L18 <standard:indent>

Unexpected indentation (8) (should be 4)
Raw output
src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt:18:1: error: Unexpected indentation (8) (should be 4) (standard:indent)

Check failure on line 18 in src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt#L18 <standard:function-signature>

Newline expected after opening parenthesis
Raw output
src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt:18:9: error: Newline expected after opening parenthesis (standard:function-signature)
"placeTitle"
) placeTitle: String
"placeTitle",

Check failure on line 19 in src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt#L19 <standard:indent>

Unexpected indentation (12) (should be 6)
Raw output
src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt:19:1: error: Unexpected indentation (12) (should be 6) (standard:indent)
) placeTitle: String,

Check failure on line 20 in src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt#L20 <standard:indent>

Unexpected indentation (12) (should be 4)
Raw output
src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt:20:1: error: Unexpected indentation (12) (should be 4) (standard:indent)
): UUID? {

Check failure on line 21 in src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt#L21 <standard:indent>

Unexpected indentation (4) (should be 2)
Raw output
src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt:21:1: error: Unexpected indentation (4) (should be 2) (standard:indent)
return repository.findUuidByPlace(placeTitle)

Check failure on line 22 in src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt#L22 <standard:indent>

Unexpected indentation (8) (should be 4)
Raw output
src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt:22:1: error: Unexpected indentation (8) (should be 4) (standard:indent)
}
}

Check failure on line 23 in src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt#L23 <standard:indent>

Unexpected indentation (4) (should be 2)
Raw output
src/main/kotlin/no/fg/hilflingbackend/controller/PlaceController.kt:23:1: error: Unexpected indentation (4) (should be 2) (standard:indent)
}

0 comments on commit 772d7bf

Please sign in to comment.