Use 100 character line limit for detekt (#50)

This commit is contained in:
Brian Yencho 2023-09-15 09:04:49 -05:00 committed by Álison Fernandes
parent dd4b937061
commit 9e1ab9ad25
4 changed files with 36 additions and 11 deletions

View file

@ -84,7 +84,11 @@ fun LoginScreen(
}
// TODO Get the "login target" from a dropdown (BIT-202)
Text(
text = stringResource(id = R.string.log_in_attempt_by_x_on_y, state.emailAddress, "bitwarden.com"),
text = stringResource(
id = R.string.log_in_attempt_by_x_on_y,
state.emailAddress,
"bitwarden.com",
),
color = MaterialTheme.colorScheme.primary,
style = MaterialTheme.typography.bodySmall,
)

View file

@ -22,7 +22,9 @@ import androidx.compose.ui.unit.dp
*
* TODO: remove deprecated version: BIT-289
*/
@Deprecated(message = "Use overloaded BitwardenTextField that takes an input instead of an initialText.")
@Deprecated(
message = "Use overloaded BitwardenTextField that takes an input instead of an initialText.",
)
@Composable
fun BitwardenTextField(
label: String,

View file

@ -43,19 +43,38 @@ fun VaultUnlockedNavBarScreen(
navController.apply {
val navOptions = vaultUnlockedNavBarScreenNavOptions()
when (event) {
VaultUnlockedNavBarEvent.NavigateToVaultScreen -> navigateToVault(navOptions)
VaultUnlockedNavBarEvent.NavigateToSendScreen -> navigateToSend(navOptions)
VaultUnlockedNavBarEvent.NavigateToGeneratorScreen -> navigateToGenerator(navOptions)
VaultUnlockedNavBarEvent.NavigateToSettingsScreen -> navigateToSettings(navOptions)
VaultUnlockedNavBarEvent.NavigateToVaultScreen -> {
navigateToVault(navOptions)
}
VaultUnlockedNavBarEvent.NavigateToSendScreen -> {
navigateToSend(navOptions)
}
VaultUnlockedNavBarEvent.NavigateToGeneratorScreen -> {
navigateToGenerator(navOptions)
}
VaultUnlockedNavBarEvent.NavigateToSettingsScreen -> {
navigateToSettings(navOptions)
}
}
}
}
VaultUnlockedNavBarScaffold(
navController = navController,
generatorTabClickedAction = { viewModel.trySendAction(VaultUnlockedNavBarAction.GeneratorTabClick) },
sendTabClickedAction = { viewModel.trySendAction(VaultUnlockedNavBarAction.SendTabClick) },
vaultTabClickedAction = { viewModel.trySendAction(VaultUnlockedNavBarAction.VaultTabClick) },
settingsTabClickedAction = { viewModel.trySendAction(VaultUnlockedNavBarAction.SettingsTabClick) },
generatorTabClickedAction = {
viewModel.trySendAction(VaultUnlockedNavBarAction.GeneratorTabClick)
},
sendTabClickedAction = {
viewModel.trySendAction(VaultUnlockedNavBarAction.SendTabClick)
},
vaultTabClickedAction = {
viewModel.trySendAction(VaultUnlockedNavBarAction.VaultTabClick)
},
settingsTabClickedAction = {
viewModel.trySendAction(VaultUnlockedNavBarAction.SettingsTabClick)
},
)
}

View file

@ -566,7 +566,7 @@ style:
active: false
MaxLineLength:
active: true
maxLineLength: 120
maxLineLength: 100
excludePackageStatements: true
excludeImportStatements: true
excludeCommentStatements: false