[PM-12166] Update detekt (#196)

This commit is contained in:
Patrick Honkonen
2024-09-19 13:06:34 -04:00
committed by GitHub
parent ea267a0298
commit 49c2e3030c
10 changed files with 11 additions and 1 deletions

View File

@@ -128,6 +128,7 @@ class ExampleInstrumentedTest {
Screengrab.screenshot("UniqueCodesSlide_Light")
}
@Suppress("UndocumentedPublicClass")
companion object {
@JvmField
@ClassRule

View File

@@ -21,6 +21,7 @@ enum class AuthenticatorItemAlgorithm {
SHA512,
;
@Suppress("UndocumentedPublicClass")
companion object {
/**
* Returns a [AuthenticatorItemAlgorithm] with a name matching [value], or null.

View File

@@ -16,6 +16,7 @@ enum class AuthenticatorItemType {
STEAM,
;
@Suppress("UndocumentedPublicClass")
companion object {
/**

View File

@@ -25,6 +25,7 @@ interface TotpCodeManager {
item: AuthenticatorItemEntity,
): StateFlow<DataState<VerificationCodeItem?>>
@Suppress("UndocumentedPublicClass")
companion object {
const val ALGORITHM_PARAM = "algorithm"
const val DIGITS_PARAM = "digits"

View File

@@ -121,6 +121,7 @@ abstract class BaseDiskSource(
.forEach { sharedPreferences.edit { remove(it) } }
}
@Suppress("UndocumentedPublicClass")
companion object {
const val BASE_KEY: String = "bwPreferencesStorage"
}

View File

@@ -25,6 +25,7 @@ abstract class BaseEncryptedDiskSource(
value: String?,
): Unit = encryptedSharedPreferences.edit { putString(key, value) }
@Suppress("UndocumentedPublicClass")
companion object {
const val ENCRYPTED_BASE_KEY: String = "bwSecureStorage"
}

View File

@@ -426,6 +426,7 @@ data class EditItemState(
) : DialogState()
}
@Suppress("UndocumentedPublicClass")
companion object {
const val MIN_ALLOWED_CODE_DIGITS = 5
const val MAX_ALLOWED_CODE_DIGITS = 10
@@ -547,6 +548,7 @@ enum class AuthenticatorRefreshPeriodOption(val seconds: Int) {
NINETY(seconds = 90),
;
@Suppress("UndocumentedPublicClass")
companion object {
/**
* Returns a [AuthenticatorRefreshPeriodOption] with the provided [seconds], or null.

View File

@@ -16,6 +16,7 @@ class SearchHandlers(
* Creates an instance of [SearchHandlers] by binding actions to the provided
* [ItemSearchViewModel].
*/
@Suppress("UndocumentedPublicClass")
companion object {
/**
* Creates an instance of [SearchHandlers] by binding actions to the provided

View File

@@ -226,6 +226,7 @@ class SettingsViewModel @Inject constructor(
)
}
@Suppress("UndocumentedPublicClass")
companion object {
private fun createInitialState(
clock: Clock,

View File

@@ -28,7 +28,7 @@ androdixAutofill = "1.1.0"
androidxWork = "2.9.1"
bitwardenSdk = "0.4.0-20240314.115913-173"
crashlytics = "3.0.2"
detekt = "1.23.6"
detekt = "1.23.7"
espresso = "3.6.1"
fastlaneScreengrab = "2.1.1"
firebaseBom = "33.2.0"