From 0287b486265462826e907c2bf4b79aacd65e9cdb Mon Sep 17 00:00:00 2001 From: "fossifybot[bot]" <212866877+fossifybot[bot]@users.noreply.github.com> Date: Sun, 1 Nov 2026 03:02:16 +0000 Subject: [PATCH] chore: update lint baselines --- app/detekt-baseline.xml | 17 ----------- app/lint-baseline.xml | 66 ++++++++++++++++++++--------------------- 2 files changed, 33 insertions(+), 50 deletions(-) diff --git a/app/detekt-baseline.xml b/app/detekt-baseline.xml index 21a3c71e..c1e987fa 100644 --- a/app/detekt-baseline.xml +++ b/app/detekt-baseline.xml @@ -2,10 +2,7 @@ - ComplexCondition:MainActivity.kt$MainActivity$requestCode == PICK_IMAGE_INTENT && resultCode == Activity.RESULT_OK && resultData != null && resultData.data != null - ComplexCondition:MainActivity.kt$MainActivity$requestCode == SAVE_IMAGE_INTENT && resultCode == Activity.RESULT_OK && resultData != null && resultData.data != null ComplexCondition:MyCanvas.kt$MyCanvas$!mIsBucketFillOn && (!mAllowMovingZooming || (!mScaleDetector!!.isInProgress && event.pointerCount == 1 && !mWasMultitouch)) - ConstructorParameterNaming:VectorFloodFiller.kt$VectorFloodFiller.FloodFillRange$var Y: Int CyclomaticComplexMethod:MyCanvas.kt$MyCanvas$override fun onTouchEvent(event: MotionEvent): Boolean EmptyCatchBlock:MainActivity.kt$MainActivity${ } LargeClass:MainActivity.kt$MainActivity : SimpleActivityCanvasListener @@ -18,32 +15,18 @@ MagicNumber:MyCanvas.kt$MyCanvas$100f MagicNumber:MyCanvas.kt$MyCanvas.ScaleListener$0.1f MagicNumber:MyCanvas.kt$MyCanvas.ScaleListener$10.0f - MagicNumber:VectorFloodFiller.kt$VectorFloodFiller$0xff - MagicNumber:VectorFloodFiller.kt$VectorFloodFiller$16 - MagicNumber:VectorFloodFiller.kt$VectorFloodFiller$8 - MaxLineLength:MainActivity.kt$MainActivity$if - MaxLineLength:MainActivity.kt$MainActivity$} MaxLineLength:MyCanvas.kt$MyCanvas$if MaxLineLength:SettingsActivity.kt$SettingsActivity$settingsUseEnglishHolder.beVisibleIf((config.wasUseEnglishToggled || Locale.getDefault().language != "en") && !isTiramisuPlus()) - MaxLineLength:VectorFloodFiller.kt$VectorFloodFiller$// if we're not below the bottom of the bitmap and the pixel below this one is within the color tolerance - MaxLineLength:VectorFloodFiller.kt$VectorFloodFiller$return red >= startColorRed - tolerance && red <= startColorRed + tolerance && green >= startColorGreen - tolerance && green <= startColorGreen + tolerance && blue >= startColorBlue - tolerance && blue <= startColorBlue + tolerance - NestedBlockDepth:MyPath.kt$MyPath$fun readObject(pathData: String, activity: Activity) SerialVersionUIDInSerializableClass:MyPath.kt$MyPath : PathSerializable - SerialVersionUIDInSerializableClass:Svg.kt$Svg$SPath : Serializable - SerialVersionUIDInSerializableClass:Svg.kt$Svg$SRect : Serializable - SerialVersionUIDInSerializableClass:Svg.kt$Svg$SSvg : Serializable SwallowedException:MainActivity.kt$MainActivity$e: ActivityNotFoundException SwallowedException:MainActivity.kt$MainActivity$e: Exception SwallowedException:MyCanvas.kt$MyCanvas$e: Exception SwallowedException:MyCanvas.kt$MyCanvas$e: ExecutionException - SwallowedException:MyPath.kt$MyPath$e: Exception TooGenericExceptionCaught:MainActivity.kt$MainActivity$e: Exception TooGenericExceptionCaught:MyCanvas.kt$MyCanvas$e: Exception - TooGenericExceptionCaught:MyPath.kt$MyPath$e: Exception TooManyFunctions:MainActivity.kt$MainActivity : SimpleActivityCanvasListener TooManyFunctions:MyCanvas.kt$MyCanvas : View UnusedPrivateMember:MyPath.kt$MyPath$private fun readObject(inputStream: ObjectInputStream) - VariableNaming:MyCanvas.kt$MyCanvas$private val FLOOD_FILL_TOLERANCE = 1 VariableNaming:MyCanvas.kt$MyCanvas$private val MAX_HISTORY_COUNT = 1000 VariableNaming:SaveImageDialog.kt$SaveImageDialog$private val SIMPLE_DRAW = "Fossify Paint" diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml index e818269c..2702818b 100644 --- a/app/lint-baseline.xml +++ b/app/lint-baseline.xml @@ -26,7 +26,7 @@ errorLine2=" ~~~~"> @@ -43,13 +43,13 @@ + message="A newer version of com.android.application than 9.4.1 is available: 9.5.0" + errorLine1="gradlePlugins-agp = "9.4.1"" + errorLine2=" ~~~~~~~"> + file="$HOME/work/Paint/Paint/gradle/libs.versions.toml" + line="17" + column="21"/> + + + + - - - - + message="Use the KTX extension function `String.toColorInt` instead?" + errorLine1=" val color = if (isEraser) 0 else Color.parseColor(if (isFill) fill else stroke)" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + file="src/main/kotlin/org/fossify/paint/models/Svg.kt" + line="221" + column="38"/>