diff options
author | Aditya Wasan <adityawasan55@gmail.com> | 2022-09-07 17:49:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 21:49:08 +0000 |
commit | 244fd92f8b59aeca608253e87bb7a7076ca4a960 (patch) | |
tree | 6861ca2fcc466983600cd296ae6096eca70e1e87 /detekt-baselines | |
parent | e5f02a3aca3d85035b80047021a4e0ee0691d3fc (diff) |
Use `GENERAL_SHOW_TIME` for decryption screen timeout (#2107)
* feat(app): use `GENERAL_SHOW_TIME` for decryption screen as well
Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
* feat: update timeout to 60 seconds
Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
* refactor(app): use constant instead of using a magic number
Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
* Add changelog entry
Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'detekt-baselines')
-rw-r--r-- | detekt-baselines/app.xml | 1 | ||||
-rw-r--r-- | detekt-baselines/crypto-pgpainless.xml | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/detekt-baselines/app.xml b/detekt-baselines/app.xml index a82c325e..cbbe4a17 100644 --- a/detekt-baselines/app.xml +++ b/detekt-baselines/app.xml @@ -35,7 +35,6 @@ <ID>LongMethod:RepositorySettings.kt$RepositorySettings$override fun provideSettings(builder: PreferenceScreen.Builder)</ID> <ID>LoopWithTooManyJumpStatements:AutofillMatcher.kt$AutofillMatcher.Companion$for ((key, value) in prefs.all) { if (!key.startsWith(PREFERENCE_PREFIX_MATCHES)) continue // We know that preferences starting with `PREFERENCE_PREFIX_MATCHES` were // created with `putStringSet`. @Suppress("UNCHECKED_CAST") val oldMatches = value as? Set<String> if (oldMatches == null) { logcat(WARN) { "Failed to read matches for $key" } continue } // Delete all matches for file locations that are going to be overwritten, then // transfer matches over to the files at their new locations. val newMatches = oldMatches .asSequence() .minus(deletePathList) .minus(oldNewPathMap.values) .map { match -> val newPath = oldNewPathMap[match] ?: return@map match logcat { "Updating match for $key: $match --> $newPath" } newPath } .toSet() if (newMatches != oldMatches) prefs.edit { putStringSet(key, newMatches) } }</ID> <ID>LoopWithTooManyJumpStatements:ErrorMessages.kt$ErrorMessages$while (cause.cause != null) { if (cause is GitException) break val nextCause = cause.cause!! if (nextCause is RemoteException) break cause = nextCause }</ID> - <ID>MagicNumber:BasePgpActivity.kt$BasePgpActivity$45</ID> <ID>MagicNumber:ClipboardService.kt$ClipboardService$1000</ID> <ID>MagicNumber:ClipboardService.kt$ClipboardService$1000L</ID> <ID>MagicNumber:ClipboardService.kt$ClipboardService$45</ID> diff --git a/detekt-baselines/crypto-pgpainless.xml b/detekt-baselines/crypto-pgpainless.xml index 5f6cad27..0276df1b 100644 --- a/detekt-baselines/crypto-pgpainless.xml +++ b/detekt-baselines/crypto-pgpainless.xml @@ -10,6 +10,5 @@ <ID>MagicNumber:GpgIdentifier.kt$GpgIdentifier.KeyId$8</ID> <ID>NestedBlockDepth:GpgIdentifier.kt$GpgIdentifier.Companion$private fun splitUserId(userId: String): String?</ID> <ID>ReturnCount:GpgIdentifier.kt$GpgIdentifier.Companion$public fun fromString(identifier: String): GpgIdentifier?</ID> - <ID>ReturnCount:KeyUtils.kt$KeyUtils$public fun tryParseKeyring(key: PGPKey): PGPKeyRing?</ID> </CurrentIssues> </SmellBaseline> |