mirror of
https://github.com/bitwarden/android.git
synced 2024-11-24 10:25:57 +03:00
Update to detekt 1.23.7 (#3901)
This commit is contained in:
parent
a5726fb72b
commit
fe1f897d64
32 changed files with 39 additions and 4 deletions
|
@ -37,6 +37,7 @@ data class EnvironmentUrlDataJson(
|
|||
@SerialName("events")
|
||||
val events: String? = null,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Default [EnvironmentUrlDataJson] for the US region.
|
||||
|
|
|
@ -94,6 +94,7 @@ sealed class PolicyInformation {
|
|||
@SerialName("includeNumber")
|
||||
val includeNumber: Boolean?,
|
||||
) : PolicyInformation() {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
const val TYPE_PASSWORD: String = "password"
|
||||
const val TYPE_PASSPHRASE: String = "passphrase"
|
||||
|
|
|
@ -32,7 +32,7 @@ class LegacySecureStorageMigratorImpl(
|
|||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
private companion object {
|
||||
private const val ENCRYPTED_BASE_KEY: String = "bwSecureStorage"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ sealed class FlagKey<out T : Any> {
|
|||
*/
|
||||
abstract val isRemotelyConfigured: Boolean
|
||||
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* List of all flag keys to consider
|
||||
|
|
|
@ -59,7 +59,7 @@ class ServerConfigRepositoryImpl(
|
|||
return localConfig
|
||||
}
|
||||
|
||||
companion object {
|
||||
private companion object {
|
||||
private const val MINIMUM_CONFIG_SYNC_INTERVAL_SEC: Long = 60 * 60
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ data class SetupAutoFillHandler(
|
|||
val onConfirmTurnOnLaterClick: () -> Unit,
|
||||
val sendAutoFillServiceFallback: () -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Convenience function for creating a [SetupAutoFillHandler] with a
|
||||
|
|
|
@ -16,6 +16,7 @@ data class SetupUnlockHandler(
|
|||
val onSetUpLaterClick: () -> Unit,
|
||||
val unlockWithBiometricToggle: () -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates an instance of [SetupUnlockHandler] by binding actions to the provided
|
||||
|
|
|
@ -14,6 +14,7 @@ class CheckEmailHandler(
|
|||
val onBackClick: () -> Unit,
|
||||
val onLoginClick: () -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Create [CheckEmailHandler] with the given [viewModel] to send actions to.
|
||||
|
|
|
@ -21,6 +21,7 @@ class CompleteRegistrationHandler(
|
|||
val onLearnToPreventLockout: () -> Unit,
|
||||
val onCallToAction: () -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Create [CompleteRegistrationHandler] with the given [viewModel] to send actions to.
|
||||
|
|
|
@ -22,7 +22,7 @@ data class StartRegistrationHandler(
|
|||
val onServerGeologyHelpClick: () -> Unit,
|
||||
val onBackClick: () -> Unit,
|
||||
) {
|
||||
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates an instance of [StartRegistrationHandler] by binding actions to the provided
|
||||
|
|
|
@ -17,6 +17,7 @@ data class TrustedDeviceHandlers(
|
|||
val onApproveWithPasswordClick: () -> Unit,
|
||||
val onNotYouButtonClick: () -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates an instance of [TrustedDeviceHandlers] by binding actions to the provided
|
||||
|
|
|
@ -20,6 +20,7 @@ data class SearchHandlers(
|
|||
val onVaultFilterSelect: (VaultFilterType) -> Unit,
|
||||
val onOverflowItemClick: (ListingItemOverflowAction) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates an instance of [SearchHandlers] by binding actions to the provided
|
||||
|
|
|
@ -104,6 +104,7 @@ class AboutViewModel @Inject constructor(
|
|||
)
|
||||
}
|
||||
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Create initial state for the About View model.
|
||||
|
|
|
@ -1348,6 +1348,7 @@ private data class PasswordHandlers(
|
|||
val onPasswordMinSpecialCharactersChange: (Int) -> Unit,
|
||||
val onPasswordToggleAvoidAmbiguousCharsChange: (Boolean) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
@Suppress("LongMethod")
|
||||
fun create(viewModel: GeneratorViewModel): PasswordHandlers {
|
||||
|
@ -1433,6 +1434,7 @@ private data class PassphraseHandlers(
|
|||
val onPassphraseCapitalizeToggleChange: (Boolean) -> Unit,
|
||||
val onPassphraseIncludeNumberToggleChange: (Boolean) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
fun create(viewModel: GeneratorViewModel): PassphraseHandlers {
|
||||
return PassphraseHandlers(
|
||||
|
@ -1482,6 +1484,7 @@ private data class PassphraseHandlers(
|
|||
private data class UsernameTypeHandlers(
|
||||
val onUsernameTooltipClicked: () -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
fun create(viewModel: GeneratorViewModel): UsernameTypeHandlers {
|
||||
return UsernameTypeHandlers(
|
||||
|
@ -1513,6 +1516,7 @@ private data class ForwardedEmailAliasHandlers(
|
|||
val onForwardEmailDomainNameTextChange: (String) -> Unit,
|
||||
val onSimpleLoginApiKeyTextChange: (String) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
@Suppress("LongMethod")
|
||||
fun create(viewModel: GeneratorViewModel): ForwardedEmailAliasHandlers {
|
||||
|
@ -1647,6 +1651,7 @@ private data class ForwardedEmailAliasHandlers(
|
|||
private data class PlusAddressedEmailHandlers(
|
||||
val onEmailChange: (String) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
fun create(viewModel: GeneratorViewModel): PlusAddressedEmailHandlers {
|
||||
return PlusAddressedEmailHandlers(
|
||||
|
@ -1676,6 +1681,7 @@ private data class PlusAddressedEmailHandlers(
|
|||
private data class CatchAllEmailHandlers(
|
||||
val onDomainChange: (String) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
fun create(viewModel: GeneratorViewModel): CatchAllEmailHandlers {
|
||||
return CatchAllEmailHandlers(
|
||||
|
@ -1706,6 +1712,7 @@ private data class RandomWordHandlers(
|
|||
val onCapitalizeChange: (Boolean) -> Unit,
|
||||
val onIncludeNumberChange: (Boolean) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
fun create(viewModel: GeneratorViewModel): RandomWordHandlers {
|
||||
return RandomWordHandlers(
|
||||
|
|
|
@ -1810,6 +1810,7 @@ data class GeneratorState(
|
|||
override val displayStringResId: Int
|
||||
get() = PasscodeTypeOption.PASSWORD.labelRes
|
||||
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
private const val DEFAULT_PASSWORD_LENGTH: Int = 14
|
||||
private const val MIN_NUMBERS: Int = 1
|
||||
|
@ -1845,6 +1846,7 @@ data class GeneratorState(
|
|||
override val displayStringResId: Int
|
||||
get() = PasscodeTypeOption.PASSPHRASE.labelRes
|
||||
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
private const val DEFAULT_PASSPHRASE_SEPARATOR: Char = '-'
|
||||
private const val DEFAULT_NUM_WORDS: Int = 3
|
||||
|
|
|
@ -26,6 +26,7 @@ data class AddSendHandlers(
|
|||
val onExpirationDateChange: (ZonedDateTime?) -> Unit,
|
||||
val onClearExpirationDateClick: () -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates an instance of [AddSendHandlers] by binding actions to the provided
|
||||
|
|
|
@ -18,6 +18,7 @@ data class SendHandlers(
|
|||
val onDeleteSendClick: (SendState.ViewState.Content.SendItem) -> Unit,
|
||||
val onRemovePasswordClick: (SendState.ViewState.Content.SendItem) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates an instance of [SendHandlers] by binding actions to the provided [SendViewModel].
|
||||
|
|
|
@ -30,6 +30,7 @@ data class VaultAddEditCardTypeHandlers(
|
|||
val onSecurityCodeVisibilityChange: (Boolean) -> Unit,
|
||||
val onNumberVisibilityChange: (Boolean) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
|
||||
/**
|
||||
|
|
|
@ -39,6 +39,7 @@ data class VaultAddEditCommonHandlers(
|
|||
val onCollectionSelect: (VaultCollection) -> Unit,
|
||||
val onHiddenFieldVisibilityChange: (Boolean) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
|
||||
/**
|
||||
|
|
|
@ -46,6 +46,7 @@ data class VaultAddEditIdentityTypeHandlers(
|
|||
val onZipTextChange: (String) -> Unit,
|
||||
val onCountryTextChange: (String) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,6 +43,7 @@ data class VaultAddEditLoginTypeHandlers(
|
|||
val onPasswordVisibilityChange: (Boolean) -> Unit,
|
||||
val onClearFido2CredentialClick: () -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
|
||||
/**
|
||||
|
|
|
@ -24,6 +24,7 @@ data class VaultAddEditUserVerificationHandlers(
|
|||
val onUserVerificationCancelled: () -> Unit,
|
||||
val onUserVerificationNotSupported: () -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,6 +15,7 @@ data class AttachmentsHandlers(
|
|||
val onDeleteClick: (attachmentId: String) -> Unit,
|
||||
val onDismissRequest: () -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates the [AttachmentsHandlers] using the [AttachmentsViewModel] to send desired
|
||||
|
|
|
@ -13,6 +13,7 @@ data class VaultCardItemTypeHandlers(
|
|||
val onShowNumberClick: (Boolean) -> Unit,
|
||||
val onShowSecurityCodeClick: (Boolean) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,6 +22,7 @@ data class VaultCommonItemTypeHandlers(
|
|||
) -> Unit,
|
||||
val onAttachmentDownloadClick: (VaultItemState.ViewState.Content.Common.AttachmentItem) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates an instance of [VaultCommonItemTypeHandlers] by binding actions
|
||||
|
|
|
@ -18,6 +18,7 @@ data class VaultLoginItemTypeHandlers(
|
|||
val onPasswordHistoryClick: () -> Unit,
|
||||
val onShowPasswordClick: (isVisible: Boolean) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates the [VaultLoginItemTypeHandlers] using the [viewModel] to send desired actions.
|
||||
|
|
|
@ -26,6 +26,7 @@ data class VaultItemListingHandlers(
|
|||
val lockClick: () -> Unit,
|
||||
val overflowItemClick: (action: ListingItemOverflowAction) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates an instance of [VaultItemListingHandlers] by binding actions to the provided
|
||||
|
|
|
@ -21,6 +21,7 @@ data class VaultItemListingUserVerificationHandlers(
|
|||
val onUserVerificationCancelled: () -> Unit,
|
||||
val onUserVerificationNotSupported: (selectedCipherId: String?) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
|
||||
/**
|
||||
|
|
|
@ -35,6 +35,7 @@ data class VaultHandlers(
|
|||
val overflowOptionClick: (ListingItemOverflowAction.VaultAction) -> Unit,
|
||||
val masterPasswordRepromptSubmit: (ListingItemOverflowAction.VaultAction, String) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates an instance of [VaultHandlers] by binding actions to the provided
|
||||
|
|
|
@ -16,6 +16,7 @@ data class VerificationCodeHandlers(
|
|||
val lockClick: () -> Unit,
|
||||
val copyClick: (text: String) -> Unit,
|
||||
) {
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Creates an instance of [VerificationCodeHandlers] by binding actions to the provided
|
||||
|
|
|
@ -45,6 +45,7 @@ enum class VaultLinkedFieldType(
|
|||
FULL_NAME(id = 418.toUInt(), label = R.string.full_name.asText()),
|
||||
;
|
||||
|
||||
@Suppress("UndocumentedPublicClass")
|
||||
companion object {
|
||||
/**
|
||||
* Helper function to get the LinkedCustomFieldType from the id
|
||||
|
|
|
@ -26,7 +26,7 @@ androdixAutofill = "1.1.0"
|
|||
androidxWork = "2.9.1"
|
||||
bitwardenSdk = "0.5.0-20240819.160739-177"
|
||||
crashlytics = "3.0.2"
|
||||
detekt = "1.23.6"
|
||||
detekt = "1.23.7"
|
||||
firebaseBom = "33.2.0"
|
||||
glide = "1.0.0-beta01"
|
||||
googleServices = "4.4.2"
|
||||
|
|
Loading…
Reference in a new issue