Просмотр исходного кода

Fix code analytics

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 год назад
Родитель
Сommit
9419d6cf09

+ 2 - 2
app/src/androidTest/java/com/nextcloud/extensions/BundleExtensionsTests.kt → app/src/androidTest/java/com/nextcloud/extensions/BundleExtensionTests.kt

@@ -34,8 +34,8 @@ import org.junit.Test
 import org.junit.runner.RunWith
 
 @RunWith(AndroidJUnit4::class)
-class BundleExtensionTest {
-    
+class BundleExtensionTests {
+
     private val key = "testDataKey"
 
     @Test

+ 5 - 5
app/src/androidTest/java/com/nextcloud/extensions/IntentExtensionsTests.kt → app/src/androidTest/java/com/nextcloud/extensions/IntentExtensionTests.kt

@@ -1,20 +1,20 @@
 /*
  * Nextcloud Android client application
- *   
+ *
  * @author Alper Ozturk
  * Copyright (C) 2024 Alper Ozturk
  * Copyright (C) 2024 Nextcloud GmbH
- *   
+ *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
  * the Free Software Foundation, either version 3 of the License, or
  * (at your option) any later version.
- *   
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  * GNU Affero General Public License for more details.
- *   
+ *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
  */
@@ -34,7 +34,7 @@ import org.junit.Test
 import org.junit.runner.RunWith
 
 @RunWith(AndroidJUnit4::class)
-class IntentExtensionTest {
+class IntentExtensionTests {
 
     private val key = "testDataKey"
 

+ 1 - 0
app/src/main/java/com/nextcloud/utils/extensions/BundleExtensions.kt

@@ -27,6 +27,7 @@ import android.os.Parcelable
 import com.owncloud.android.lib.common.utils.Log_OC
 import java.io.Serializable
 
+@Suppress("TopLevelPropertyNaming")
 private const val tag = "BundleExtension"
 
 fun <T : Serializable?> Bundle?.getSerializableArgument(key: String, type: Class<T>): T? {

+ 1 - 0
app/src/main/java/com/nextcloud/utils/extensions/IntentExtensions.kt

@@ -27,6 +27,7 @@ import android.os.Parcelable
 import com.owncloud.android.lib.common.utils.Log_OC
 import java.io.Serializable
 
+@Suppress("TopLevelPropertyNaming")
 private const val tag = "IntentExtension"
 
 fun <T : Serializable?> Intent?.getSerializableArgument(key: String, type: Class<T>): T? {