Bug 1967292 - Update ktlint to version 1.6.0. r=android-reviewers,mcarare

Differential Revision: https://phabricator.services.mozilla.com/D250064
This commit is contained in:
Ryan VanderMeulen
2025-05-20 12:13:24 +00:00
committed by rvandermeulen@mozilla.com
parent e0a00e5f7d
commit ba9d7aea61
6 changed files with 9 additions and 14 deletions

View File

@@ -6,8 +6,6 @@ lint = "31.10.0"
python-envs-plugin = "0.0.31"
maven-ant-tasks = "2.1.3"
androidsvg = "1.4"
detekt = "1.23.8"
ktlint = "1.5.0"
zxing = "3.5.3"
disklrucache = "2.0.2"
leakcanary = "2.14"
@@ -78,6 +76,11 @@ kotlin = "2.1.21" # remember to change ksp-plugin
ksp-plugin = "2.1.21-2.0.1"
serialization = "1.8.1"
# Linter versions
detekt = "1.23.8"
ktlint = "1.6.0"
spotless = "7.0.2"
# Mozilla versions
apilint = "0.5.4"
mozilla-glean = "64.2.0"
@@ -102,7 +105,6 @@ okio = "3.11.0"
sentry = "8.12.0"
commons-exec = "1.3"
spotless = "7.0.2"
tomlj = "1.1.0"
[libraries]

View File

@@ -13,6 +13,7 @@ import androidx.annotation.VisibleForTesting
const val INPUT_HANDLING_UNKNOWN = -1
// The below top-level values are following the same from [org.mozilla.geckoview.PanZoomController]
/**
* The content has no scrollable element.
*

View File

@@ -173,11 +173,6 @@ class SponsoredContentsDaoTest {
assertEquals(sponsoredContent3.url, impressions[1].url)
}
/**
* Sets an executor to be used for database transactions.
* Needs to be used along with "runTest" to ensure waiting for transactions to finish but
* not hang tests.
*/
/**
* Sets an executor to be used for database transactions.
* Needs to be used along with "runTest" to ensure waiting for transactions to finish but

View File

@@ -74,8 +74,7 @@ object AppAndSystemHelper {
suspend fun bookmarks() = bookmarksStorage.getTree(BookmarkRoot.Mobile.id)?.children
fun getPermissionAllowID(): String {
Log.i(TAG, "getPermissionAllowID: Trying to get the permission button resource ID based on API.")
return when
(Build.VERSION.SDK_INT > Build.VERSION_CODES.P) {
return when (Build.VERSION.SDK_INT > Build.VERSION_CODES.P) {
true -> {
Log.i(TAG, "getPermissionAllowID: Getting the permission button resource ID for API ${Build.VERSION.SDK_INT}.")
"com.android.permissioncontroller"

View File

@@ -87,8 +87,7 @@ fun CookieBannerReducerItem(
shape = RectangleShape,
)
if (cookieBannerReducerStatus !is CookieBannerReducerStatus.CookieBannerUnsupportedSiteRequestWasSubmitted
) {
if (cookieBannerReducerStatus !is CookieBannerReducerStatus.CookieBannerUnsupportedSiteRequestWasSubmitted) {
rowModifier = rowModifier.then(
Modifier.clickable(
interactionSource = remember { MutableInteractionSource() },

View File

@@ -40,8 +40,7 @@ class PrivacySecuritySettingsFragment :
getString(R.string.preference_security_biometric_summary2, appName)
// Remove the biometric toggle if the software or hardware do not support it
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M || !requireContext().canUseBiometricFeature()
) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M || !requireContext().canUseBiometricFeature()) {
biometricPreference?.let { preferenceScreen.removePreference(it) }
}
if (!FocusNimbus.features.onboarding.value().isCfrEnabled ||