diff --git a/app/src/main/java/be/scri/fragments/LanguageSettingsFragment.kt b/app/src/main/java/be/scri/fragments/LanguageSettingsFragment.kt index fb570c4e..48edbf9b 100644 --- a/app/src/main/java/be/scri/fragments/LanguageSettingsFragment.kt +++ b/app/src/main/java/be/scri/fragments/LanguageSettingsFragment.kt @@ -19,6 +19,7 @@ import be.scri.databinding.FragmentLanguageSettingsBinding import be.scri.helpers.CustomAdapter import be.scri.models.SwitchItem +@Suppress("LongMethod") class LanguageSettingsFragment : Fragment() { private var _binding: FragmentLanguageSettingsBinding? = null val binding get() = _binding!! diff --git a/app/src/main/java/be/scri/helpers/MyKeyboard.kt b/app/src/main/java/be/scri/helpers/MyKeyboard.kt index 982097bd..fe174aa2 100644 --- a/app/src/main/java/be/scri/helpers/MyKeyboard.kt +++ b/app/src/main/java/be/scri/helpers/MyKeyboard.kt @@ -21,6 +21,7 @@ import java.io.IOException * @attr ref android.R.styleable#Keyboard_keyWidth * @attr ref android.R.styleable#Keyboard_horizontalGap */ +@Suppress("LongMethod") class MyKeyboard { /** Horizontal gap default for all rows */ private var mDefaultHorizontalGap = 0 diff --git a/app/src/main/java/be/scri/views/MyKeyboardView.kt b/app/src/main/java/be/scri/views/MyKeyboardView.kt index 2e530b4a..ecbd8b57 100644 --- a/app/src/main/java/be/scri/views/MyKeyboardView.kt +++ b/app/src/main/java/be/scri/views/MyKeyboardView.kt @@ -58,7 +58,7 @@ import java.util.Arrays import java.util.Locale @SuppressLint("UseCompatLoadingForDrawables") -@Suppress("LargeClass") +@Suppress("LargeClass", "LongMethod") class MyKeyboardView @JvmOverloads constructor( diff --git a/detekt.yml b/detekt.yml index d39c1795..3c9a3865 100644 --- a/detekt.yml +++ b/detekt.yml @@ -9,10 +9,10 @@ style: active: false ReturnCount: active: false - # UnusedPrivateProperty: - # active: true - # UnusedParameter: - # active: true + UnusedPrivateProperty: + active: true + UnusedParameter: + active: true UtilityClassWithPublicConstructor: active: false @@ -26,7 +26,7 @@ complexity: LongParameterList: active: false LongMethod: - active: false + active: true CyclomaticComplexMethod: active: false @@ -39,8 +39,8 @@ exceptions: empty-blocks: EmptyCatchBlock: active: false - # EmptyFunctionBlock: - # active: false + EmptyFunctionBlock: + active: false performance: SpreadOperator: