summaryrefslogtreecommitdiff
path: root/detekt-baselines/app.xml
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-03-27 17:45:35 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-03-27 17:53:10 +0530
commit8b97a4a3f1dc799d327dbb7ac631d266a7a986a4 (patch)
tree63a37d740baef9757c0b90f0679fdcf1e7ce200a /detekt-baselines/app.xml
parent6931f2d7f51fd5d4ed48a6548744c656bf333b6b (diff)
refactor: migrate to androidx.core APIs for `Bundle`/`Intent` API changes
Diffstat (limited to 'detekt-baselines/app.xml')
-rw-r--r--detekt-baselines/app.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/detekt-baselines/app.xml b/detekt-baselines/app.xml
index 594291d4..bf021902 100644
--- a/detekt-baselines/app.xml
+++ b/detekt-baselines/app.xml
@@ -25,6 +25,7 @@
<ID>LongMethod:PasswordCreationActivity.kt$PasswordCreationActivity$private fun encrypt()</ID>
<ID>LongMethod:PasswordFragment.kt$PasswordFragment$private fun initializePasswordList()</ID>
<ID>LongMethod:RepositorySettings.kt$RepositorySettings$override fun provideSettings(builder: PreferenceScreen.Builder)</ID>
+ <ID>LongMethod:SettingsActivity.kt$SettingsActivity$override fun onCreate(savedInstanceState: Bundle?)</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&lt;String&gt; 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 -&gt; val newPath = oldNewPathMap[match] ?: return@map match logcat { "Updating match for $key: $match --&gt; $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:ClipboardService.kt$ClipboardService$1000</ID>