Skip to content

Commit

Permalink
Fix detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
prof18 committed Jun 1, 2023
1 parent 283a4c0 commit be218c3
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Expand Up @@ -91,14 +91,14 @@ internal fun DatePickerDialog(
TextButton(onClick = {
onSave()
setDialogVisible(false)
},) {
}) {
Text(stringResource(id = R.string.confirm))
}
},
dismissButton = {
TextButton(onClick = {
setDialogVisible(false)
},) {
}) {
Text(stringResource(id = R.string.cancel))
}
},
Expand All @@ -121,7 +121,7 @@ private fun DatePickerItemDropdownMenu(
modifier = Modifier
.clickable(onClick = {
expanded = true
},),
}),
) {
Text(
text = dropdownText,
Expand All @@ -145,7 +145,7 @@ private fun DatePickerItemDropdownMenu(
setDropdownText(it)
expanded = false
onItemSelected(it)
},) {
}) {
Text(
text = it,
style = MaterialTheme.typography.body1,
Expand Down
Expand Up @@ -88,7 +88,7 @@ internal fun AllTransactionsScreen(
// TODO: create some sort of sticky header by grouping by date

items(
count = lazyPagingItems.itemCount
count = lazyPagingItems.itemCount,
) { index ->
val transaction = lazyPagingItems[index]
if (transaction != null) {
Expand Down
Expand Up @@ -35,7 +35,7 @@ internal fun CategoryCard(
horizontalArrangement = Arrangement.SpaceBetween,
modifier = Modifier.clickable(onClick = {
onClick?.invoke(category)
}, enabled = onClick != null,),
}, enabled = onClick != null),
) {

// TODO is this weight necessary?
Expand Down
Expand Up @@ -215,7 +215,7 @@ internal fun HomeScreen(
DropdownMenuItem(onClick = {
deleteTransaction(transaction.id)
setShowTransactionMenu(false)
},) {
}) {
Text(stringResource(R.string.delete))
}
}
Expand Down
Expand Up @@ -50,7 +50,7 @@ internal fun TransactionCard(
.fillMaxWidth()
.clickable(onClick = {
onClick()
},)
})
.pointerInput(Unit) {
detectTapGestures(
onLongPress = {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Expand Up @@ -14,7 +14,7 @@ compose-bom = "2023.05.01"
coroutines = "1.7.1"
dropbox-core = "5.4.4"
agp = "8.0.2"
detekt = "1.22.0"
detekt = "1.23.0"
versions-ben-manes = "0.44.0"
java = "11"
junit = "4.13.2"
Expand Down
2 changes: 1 addition & 1 deletion iosApp/Podfile.lock
Expand Up @@ -24,4 +24,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 6e5e009d7057c504bd9c6d63c2dac3b46aae85fb

COCOAPODS: 1.11.3
COCOAPODS: 1.12.0

0 comments on commit be218c3

Please sign in to comment.