diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-09-05 15:36:29 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-09-05 15:36:29 +0530 |
commit | 42ecba8dee9b3817bc43901efd7b043c6f2d0b6b (patch) | |
tree | 21e20bf76136769ae8ec6492e0294f98c6fd17d8 /app | |
parent | d3bb8884492b1cda6a115d9cacbb1a6f020911f7 (diff) |
fix(lint): resolve and suppress lints to fix canary builds
Diffstat (limited to 'app')
-rw-r--r-- | app/lint-baseline.xml | 14 | ||||
-rw-r--r-- | app/src/main/java/app/passwordstore/ui/main/LaunchActivity.kt | 2 | ||||
-rw-r--r-- | app/src/main/java/app/passwordstore/util/extensions/FragmentExtensions.kt | 1 |
3 files changed, 16 insertions, 1 deletions
diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml index 242d39a0..f7d8a1de 100644 --- a/app/lint-baseline.xml +++ b/app/lint-baseline.xml @@ -20,6 +20,20 @@ </issue> <issue + id="TrustAllX509TrustManager" + message="`checkClientTrusted` is empty, which could cause insecure network traffic due to trusting arbitrary TLS/SSL certificates presented by peers"> + <location + file="$GRADLE_USER_HOME/caches/modules-2/files-2.1/org.eclipse.jgit/org.eclipse.jgit/3.7.1.201504261725-r/28bae05826c1a34381826fb1d9ea5fd0ec47cc67/org.eclipse.jgit-3.7.1.201504261725-r.jar"/> + </issue> + + <issue + id="TrustAllX509TrustManager" + message="`checkServerTrusted` is empty, which could cause insecure network traffic due to trusting arbitrary TLS/SSL certificates presented by peers"> + <location + file="$GRADLE_USER_HOME/caches/modules-2/files-2.1/org.eclipse.jgit/org.eclipse.jgit/3.7.1.201504261725-r/28bae05826c1a34381826fb1d9ea5fd0ec47cc67/org.eclipse.jgit-3.7.1.201504261725-r.jar"/> + </issue> + + <issue id="VectorPath" message="Very long vector path (1042 characters), which is bad for performance. Considering reducing precision, removing minor details or rasterizing vector." errorLine1=" android:pathData="M21.81,12.74l-0.82,-0.63v-0.22l0.8,-0.63c0.16,-0.12 0.2,-0.34 0.1,-0.51l-0.85,-1.48c-0.07,-0.13 -0.21,-0.2 -0.35,-0.2 -0.05,0 -0.1,0.01 -0.15,0.03l-0.95,0.38c-0.08,-0.05 -0.11,-0.07 -0.19,-0.11l-0.15,-1.01c-0.03,-0.21 -0.2,-0.36 -0.4,-0.36h-1.71c-0.2,0 -0.37,0.15 -0.4,0.34l-0.14,1.01c-0.03,0.02 -0.07,0.03 -0.1,0.05l-0.09,0.06 -0.95,-0.38c-0.05,-0.02 -0.1,-0.03 -0.15,-0.03 -0.14,0 -0.27,0.07 -0.35,0.2l-0.85,1.48c-0.1,0.17 -0.06,0.39 0.1,0.51l0.8,0.63v0.23l-0.8,0.63c-0.16,0.12 -0.2,0.34 -0.1,0.51l0.85,1.48c0.07,0.13 0.21,0.2 0.35,0.2 0.05,0 0.1,-0.01 0.15,-0.03l0.95,-0.37c0.08,0.05 0.12,0.07 0.2,0.11l0.15,1.01c0.03,0.2 0.2,0.34 0.4,0.34h1.71c0.2,0 0.37,-0.15 0.4,-0.34l0.15,-1.01c0.03,-0.02 0.07,-0.03 0.1,-0.05l0.09,-0.06 0.95,0.38c0.05,0.02 0.1,0.03 0.15,0.03 0.14,0 0.27,-0.07 0.35,-0.2l0.85,-1.48c0.1,-0.17 0.06,-0.39 -0.1,-0.51zM18,13.5c-0.83,0 -1.5,-0.67 -1.5,-1.5s0.67,-1.5 1.5,-1.5 1.5,0.67 1.5,1.5 -0.67,1.5 -1.5,1.5zM17,17h2v4c0,1.1 -0.9,2 -2,2H7c-1.1,0 -2,-0.9 -2,-2V3c0,-1.1 0.9,-2 2,-2h10c1.1,0 2,0.9 2,2v4h-2V6H7v12h10v-1z" />" diff --git a/app/src/main/java/app/passwordstore/ui/main/LaunchActivity.kt b/app/src/main/java/app/passwordstore/ui/main/LaunchActivity.kt index 0c38e3da..d34c24b2 100644 --- a/app/src/main/java/app/passwordstore/ui/main/LaunchActivity.kt +++ b/app/src/main/java/app/passwordstore/ui/main/LaunchActivity.kt @@ -4,6 +4,7 @@ */ package app.passwordstore.ui.main +import android.annotation.SuppressLint import android.content.Intent import android.os.Bundle import android.os.Handler @@ -22,6 +23,7 @@ import dagger.hilt.android.AndroidEntryPoint import javax.inject.Inject @AndroidEntryPoint +@SuppressLint("CustomSplashScreen") class LaunchActivity : AppCompatActivity() { @Inject lateinit var features: Features diff --git a/app/src/main/java/app/passwordstore/util/extensions/FragmentExtensions.kt b/app/src/main/java/app/passwordstore/util/extensions/FragmentExtensions.kt index fca45df6..791196ff 100644 --- a/app/src/main/java/app/passwordstore/util/extensions/FragmentExtensions.kt +++ b/app/src/main/java/app/passwordstore/util/extensions/FragmentExtensions.kt @@ -28,7 +28,6 @@ fun FragmentManager.performTransactionWithBackStack( @IdRes containerViewId: Int = android.R.id.content ) { commit { - beginTransaction() addToBackStack(destinationFragment.tag) setCustomAnimations( R.animator.slide_in_left, |