Skip to content

Commit

Permalink
[PM-12166] Update detekt (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintPatrck authored Sep 19, 2024
1 parent ea267a0 commit 49c2e30
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class ExampleInstrumentedTest {
Screengrab.screenshot("UniqueCodesSlide_Light")
}

@Suppress("UndocumentedPublicClass")
companion object {
@JvmField
@ClassRule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ enum class AuthenticatorItemAlgorithm {
SHA512,
;

@Suppress("UndocumentedPublicClass")
companion object {
/**
* Returns a [AuthenticatorItemAlgorithm] with a name matching [value], or null.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ enum class AuthenticatorItemType {
STEAM,
;

@Suppress("UndocumentedPublicClass")
companion object {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ abstract class BaseDiskSource(
.forEach { sharedPreferences.edit { remove(it) } }
}

@Suppress("UndocumentedPublicClass")
companion object {
const val BASE_KEY: String = "bwPreferencesStorage"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class SettingsViewModel @Inject constructor(
)
}

@Suppress("UndocumentedPublicClass")
companion object {
private fun createInitialState(
clock: Clock,
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 49c2e30

Please sign in to comment.