From 8b97a4a3f1dc799d327dbb7ac631d266a7a986a4 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 27 Mar 2023 17:45:35 +0530 Subject: refactor: migrate to androidx.core APIs for `Bundle`/`Intent` API changes --- detekt-baselines/app.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'detekt-baselines/app.xml') 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 @@ LongMethod:PasswordCreationActivity.kt$PasswordCreationActivity$private fun encrypt() LongMethod:PasswordFragment.kt$PasswordFragment$private fun initializePasswordList() LongMethod:RepositorySettings.kt$RepositorySettings$override fun provideSettings(builder: PreferenceScreen.Builder) + LongMethod:SettingsActivity.kt$SettingsActivity$override fun onCreate(savedInstanceState: Bundle?) 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) } } LoopWithTooManyJumpStatements:ErrorMessages.kt$ErrorMessages$while (cause.cause != null) { if (cause is GitException) break val nextCause = cause.cause!! if (nextCause is RemoteException) break cause = nextCause } MagicNumber:ClipboardService.kt$ClipboardService$1000 -- cgit v1.2.3