From 3cbaacc2e09edd364d0045a3ba7a807644da2ac0 Mon Sep 17 00:00:00 2001 From: Alon Blayer-Gat Date: Sun, 22 Oct 2023 15:33:27 +0300 Subject: [PATCH] lint: fixes + baseline Signed-off-by: Alon Blayer-Gat --- .idea/inspectionProfiles/Default.xml | 38 +- tunnel/build.gradle.kts | 1 + tunnel/lint-baseline.xml | 15 + .../wireguard/android/backend/GoBackend.java | 21 +- .../android/backend/WgQuickBackend.java | 11 +- .../com/wireguard/android/util/RootShell.java | 20 +- .../android/util/ToolsInstaller.java | 4 +- .../java/com/wireguard/config/Config.java | 3 +- .../com/wireguard/config/InetAddresses.java | 7 +- .../com/wireguard/config/InetEndpoint.java | 3 +- .../com/wireguard/config/InetNetwork.java | 3 +- .../java/com/wireguard/config/Interface.java | 3 +- .../main/java/com/wireguard/config/Peer.java | 3 +- .../main/java/com/wireguard/crypto/Key.java | 2 +- tunnel/tools/libwg-go/jni.c | 2 + ui/build.gradle.kts | 1 + ui/lint-baseline.xml | 5628 +++++++++++++++++ .../java/com/wireguard/android/Application.kt | 1 - .../com/wireguard/android/QuickTileService.kt | 7 +- .../android/activity/SettingsActivity.kt | 2 - .../android/activity/TvMainActivity.kt | 1 - .../android/databinding/ItemChangeListener.kt | 2 +- .../ObservableKeyedRecyclerViewAdapter.kt | 2 +- .../android/fragment/AppListDialogFragment.kt | 1 - .../wireguard/android/model/TunnelManager.kt | 3 +- .../PreferencesPreferenceDataStore.kt | 2 +- .../wireguard/android/updater/Ed25519.java | 416 +- .../com/wireguard/android/updater/Updater.kt | 8 +- .../android/util/BiometricAuthenticator.kt | 4 +- .../android/util/DownloadsFileSaver.kt | 4 +- .../android/util/QrCodeFromFileScanner.kt | 6 +- .../wireguard/android/util/TunnelImporter.kt | 32 +- .../wireguard/android/viewmodel/PeerProxy.kt | 7 +- 33 files changed, 5936 insertions(+), 327 deletions(-) create mode 100644 tunnel/lint-baseline.xml create mode 100644 ui/lint-baseline.xml diff --git a/.idea/inspectionProfiles/Default.xml b/.idea/inspectionProfiles/Default.xml index dd7663574..40c62f55d 100644 --- a/.idea/inspectionProfiles/Default.xml +++ b/.idea/inspectionProfiles/Default.xml @@ -20,13 +20,9 @@ - - - - @@ -38,7 +34,6 @@ - @@ -76,7 +71,6 @@ - -