-
-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathdetekt-baseline.xml
More file actions
118 lines (118 loc) · 13.2 KB
/
detekt-baseline.xml
File metadata and controls
118 lines (118 loc) · 13.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0" ?>
<SmellBaseline>
<ManuallySuppressedIssues/>
<CurrentIssues>
<ID>ComplexCondition:ManageClipboardItemsActivity.kt$ManageClipboardItemsActivity$requestCode == PICK_EXPORT_CLIPS_INTENT && resultCode == Activity.RESULT_OK && resultData != null && resultData.data != null</ID>
<ID>ComplexCondition:ManageClipboardItemsActivity.kt$ManageClipboardItemsActivity$requestCode == PICK_IMPORT_CLIPS_SOURCE_INTENT && resultCode == Activity.RESULT_OK && resultData != null && resultData.data != null</ID>
<ID>ComplexCondition:MyKeyboardView.kt$MyKeyboardView$!newLabel.isNullOrEmpty() && mKeyboard!!.mShiftState != ShiftState.OFF && newLabel.length < 3 && Character.isLowerCase(newLabel[0])</ID>
<ID>ComplexCondition:MyKeyboardView.kt$MyKeyboardView$(show && keyboardViewBinding?.clipboardValue!!.alpha == 0f) || (!show && keyboardViewBinding?.clipboardValue!!.alpha == 1f)</ID>
<ID>ComplexCondition:MyKeyboardView.kt$MyKeyboardView$key.label.isNotEmpty() && key.code != KEYCODE_MODE_CHANGE && key.code != KEYCODE_SYMBOLS_MODE_CHANGE && key.code != KEYCODE_SHIFT</ID>
<ID>ComplexCondition:MyKeyboardView.kt$MyKeyboardView$mBuffer == null || mKeyboardChanged && (mBuffer!!.width != width || mBuffer!!.height != height)</ID>
<ID>CyclomaticComplexMethod:ContextExt.kt$fun Context.setupKeyboardDialogStuff( windowToken: IBinder, view: View, dialog: AlertDialog.Builder, titleId: Int = 0, titleText: String = "", cancelOnTouchOutside: Boolean = true, callback: ((alertDialog: AlertDialog) -> Unit)? = null )</ID>
<ID>CyclomaticComplexMethod:MyKeyboard.kt$MyKeyboard$@SuppressLint("UseCompatLoadingForDrawables") private fun loadKeyboard(context: Context, parser: XmlResourceParser)</ID>
<ID>CyclomaticComplexMethod:MyKeyboardView.kt$MyKeyboardView$@SuppressLint("UseCompatLoadingForDrawables") private fun onBufferDraw()</ID>
<ID>CyclomaticComplexMethod:MyKeyboardView.kt$MyKeyboardView$override fun onTouchEvent(me: MotionEvent): Boolean</ID>
<ID>CyclomaticComplexMethod:MyKeyboardView.kt$MyKeyboardView$private fun onModifiedTouchEvent(me: MotionEvent): Boolean</ID>
<ID>CyclomaticComplexMethod:MyKeyboardView.kt$MyKeyboardView$private fun setupEmojiAdapter(emojis: List<EmojiData>)</ID>
<ID>CyclomaticComplexMethod:MyKeyboardView.kt$MyKeyboardView$private fun setupKeyBackground(key: MyKeyboard.Key, keyCode: Int, canvas: Canvas)</ID>
<ID>CyclomaticComplexMethod:SimpleKeyboardIME.kt$SimpleKeyboardIME$override fun onKey(code: Int)</ID>
<ID>CyclomaticComplexMethod:SimpleKeyboardIME.kt$SimpleKeyboardIME$private fun getKeyboardLayoutXML(): Int</ID>
<ID>EmptyCatchBlock:MyKeyboard.kt$MyKeyboard${ }</ID>
<ID>EmptyFunctionBlock:ClipsActivityAdapter.kt$ClipsActivityAdapter${}</ID>
<ID>ForbiddenComment:SimpleKeyboardIME.kt$SimpleKeyboardIME$// TODO: Change keyboardMode to enum class</ID>
<ID>LargeClass:MyKeyboardView.kt$MyKeyboardView : View</ID>
<ID>LongMethod:MyKeyboardView.kt$MyKeyboardView$@SuppressLint("UseCompatLoadingForDrawables") private fun onBufferDraw()</ID>
<ID>LongMethod:MyKeyboardView.kt$MyKeyboardView$private fun onModifiedTouchEvent(me: MotionEvent): Boolean</ID>
<ID>LongMethod:SimpleKeyboardIME.kt$SimpleKeyboardIME$override fun onKey(code: Int)</ID>
<ID>LoopWithTooManyJumpStatements:MyKeyboard.kt$MyKeyboard$while</ID>
<ID>MagicNumber:Config.kt$Config$100</ID>
<ID>MagicNumber:EmojiHelper.kt$3</ID>
<ID>MagicNumber:EmojisAdapter.kt$EmojisAdapter.EmojiCategoryViewHolder$0.6f</ID>
<ID>MagicNumber:MyKeyboard.kt$MyKeyboard$10</ID>
<ID>MagicNumber:MyKeyboard.kt$MyKeyboard$100.0F</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$0.1f</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$0.2f</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$0.5f</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$0.6f</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$0.8f</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$0.9f</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$1.4f</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$10</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$12</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$14</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$150</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$18</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$2.5</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$255</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$3</ID>
<ID>MagicNumber:MyKeyboardView.kt$MyKeyboardView$4</ID>
<ID>MagicNumber:SimpleKeyboardIME.kt$SimpleKeyboardIME$100</ID>
<ID>MagicNumber:SimpleKeyboardIME.kt$SimpleKeyboardIME$8</ID>
<ID>MatchingDeclarationName:Constants.kt$ShiftState</ID>
<ID>MaxLineLength:ClipsActivityAdapter.kt$ClipsActivityAdapter$activity: BaseSimpleActivity</ID>
<ID>MaxLineLength:ClipsActivityAdapter.kt$ClipsActivityAdapter$override fun onCreateViewHolder(parent: ViewGroup, viewType: Int)</ID>
<ID>MaxLineLength:ClipsKeyboardAdapter.kt$ClipsKeyboardAdapter$layerDrawable.findDrawableByLayerId(R.id.clipboard_background_stroke).applyColorFilter(context.getStrokeColor())</ID>
<ID>MaxLineLength:Config.kt$Config$set(lastExportedClipsFolder) = prefs.edit().putString(LAST_EXPORTED_CLIPS_FOLDER, lastExportedClipsFolder).apply()</ID>
<ID>MaxLineLength:EmojisAdapter.kt$EmojisAdapter.EmojiCategoryViewHolder$inner</ID>
<ID>MaxLineLength:ExportClipsDialog.kt$ExportClipsDialog$exportClipsFilename.setText("${activity.getString(R.string.app_launcher_name)}_${activity.getCurrentFormattedDateTime()}")</ID>
<ID>MaxLineLength:ExportClipsDialog.kt$ExportClipsDialog$val activity: BaseSimpleActivity</ID>
<ID>MaxLineLength:ExportClipsDialog.kt$ExportClipsDialog$val title = String.format(activity.getString(R.string.file_already_exists_overwrite), newPath.getFilenameFromPath())</ID>
<ID>MaxLineLength:ManageClipboardItemsActivity.kt$ManageClipboardItemsActivity$clipboardItemsPlaceholder.text = "${getText(R.string.manage_clipboard_empty)}\n\n${getText(R.string.manage_clips)}"</ID>
<ID>MaxLineLength:ManageClipboardItemsActivity.kt$ManageClipboardItemsActivity$if</ID>
<ID>MaxLineLength:ManageClipboardItemsActivity.kt$ManageClipboardItemsActivity$val msg = if (clipsImported > 0) R.string.importing_successful else R.string.no_new_entries_for_importing</ID>
<ID>MaxLineLength:ManageClipboardItemsActivity.kt$ManageClipboardItemsActivity$}</ID>
<ID>MaxLineLength:MyKeyboard.kt$MyKeyboard$*</ID>
<ID>MaxLineLength:MyKeyboard.kt$MyKeyboard$EditorInfo.IME_ACTION_NEXT, EditorInfo.IME_ACTION_GO -> R.drawable.ic_arrow_right_vector</ID>
<ID>MaxLineLength:MyKeyboard.kt$MyKeyboard$constructor</ID>
<ID>MaxLineLength:MyKeyboard.kt$MyKeyboard.Key$*</ID>
<ID>MaxLineLength:MyKeyboard.kt$MyKeyboard.Key$gap = getDimensionOrFraction(a, R.styleable.MyKeyboard_horizontalGap, keyboard.mDisplayWidth, parent.defaultHorizontalGap)</ID>
<ID>MaxLineLength:MyKeyboard.kt$MyKeyboard.Key$return ((x >= this.x || leftEdge && x <= this.x + width) && (x < this.x + width || rightEdge && x >= this.x) && (y >= this.y && y <= this.y + height) && (y < this.y + height && y >= this.y))</ID>
<ID>MaxLineLength:MyKeyboard.kt$MyKeyboard.Key$width = getDimensionOrFraction(a, R.styleable.MyKeyboard_keyWidth, keyboard.mDisplayWidth, parent.defaultWidth)</ID>
<ID>MaxLineLength:MyKeyboard.kt$MyKeyboard.Row$*</ID>
<ID>MaxLineLength:MyKeyboard.kt$MyKeyboard.Row$defaultHorizontalGap = getDimensionOrFraction(a, R.styleable.MyKeyboard_horizontalGap, parent.mDisplayWidth, parent.mDefaultHorizontalGap)</ID>
<ID>MaxLineLength:MyKeyboard.kt$MyKeyboard.Row$defaultWidth = getDimensionOrFraction(a, R.styleable.MyKeyboard_keyWidth, parent.mDisplayWidth, parent.mDefaultWidth)</ID>
<ID>MaxLineLength:MyKeyboardView.kt$MyKeyboardView$*</ID>
<ID>MaxLineLength:MyKeyboardView.kt$MyKeyboardView$// And therefore the width of the key might be smaller than width declared in MyKeyboard.Key.width for the main keyboard.</ID>
<ID>MaxLineLength:MyKeyboardView.kt$MyKeyboardView$// For 'number' and 'phone' keyboards the count of popup keys might be bigger than count of keys in the main keyboard.</ID>
<ID>MaxLineLength:MyKeyboardView.kt$MyKeyboardView$// if the user presses a key while still holding down the previous, type in both chars and ignore the later gestures</ID>
<ID>MaxLineLength:MyKeyboardView.kt$MyKeyboardView$// make sure we highlight the proper key right after long pressing it, before any ACTION_MOVE event occurs</ID>
<ID>MaxLineLength:MyKeyboardView.kt$MyKeyboardView$if</ID>
<ID>MaxLineLength:MyKeyboardView.kt$MyKeyboardView$me.x - (coords[0] + mMiniKeyboard!!.measuredWidth) > mPopupMaxMoveDistance</ID>
<ID>MaxLineLength:MyKeyboardView.kt$MyKeyboardView$systemFontPaint.hasGlyph(emoji.emoji)</ID>
<ID>MaxLineLength:OnKeyboardActionListener.kt$OnKeyboardActionListener$*</ID>
<ID>MaxLineLength:SettingsActivity.kt$SettingsActivity$settingsUseEnglishHolder.beVisibleIf((config.wasUseEnglishToggled || Locale.getDefault().language != "en") && !isTiramisuPlus())</ID>
<ID>MaxLineLength:SimpleKeyboardIME.kt$SimpleKeyboardIME$// If the keyboard is set to symbols and the user presses space, we usually should switch back to the letters keyboard.</ID>
<ID>MaxLineLength:SimpleKeyboardIME.kt$SimpleKeyboardIME$System.currentTimeMillis() - lastShiftPressTS < SHIFT_PERM_TOGGLE_SPEED -> keyboard!!.mShiftState = ShiftState.ON_PERMANENT</ID>
<ID>MaxLineLength:SimpleKeyboardIME.kt$SimpleKeyboardIME$class</ID>
<ID>MaxLineLength:SimpleKeyboardIME.kt$SimpleKeyboardIME$if</ID>
<ID>MaxLineLength:SimpleKeyboardIME.kt$SimpleKeyboardIME$inputConnection.setComposingRegion(fullText.length - shouldChangeText.length, fullText.length)</ID>
<ID>MaxLineLength:SimpleKeyboardIME.kt$SimpleKeyboardIME$inputConnection.setComposingText(cachedVNTelexData[shouldChangeText], fullText.length)</ID>
<ID>MaxLineLength:SimpleKeyboardIME.kt$SimpleKeyboardIME$it</ID>
<ID>MaxLineLength:SimpleKeyboardIME.kt$SimpleKeyboardIME$layerDrawable.findDrawableByLayerId(R.id.clipboard_background_shape).applyColorFilter(getProperBackgroundColor())</ID>
<ID>MaxLineLength:SimpleKeyboardIME.kt$SimpleKeyboardIME$override</ID>
<ID>MaxLineLength:SwitchLanguageDialog.kt$SwitchLanguageDialog$addView(radioButton, RadioGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT))</ID>
<ID>NestedBlockDepth:ContextExt.kt$fun Context.setupKeyboardDialogStuff( windowToken: IBinder, view: View, dialog: AlertDialog.Builder, titleId: Int = 0, titleText: String = "", cancelOnTouchOutside: Boolean = true, callback: ((alertDialog: AlertDialog) -> Unit)? = null )</ID>
<ID>NestedBlockDepth:MyKeyboard.kt$MyKeyboard$@SuppressLint("UseCompatLoadingForDrawables") private fun loadKeyboard(context: Context, parser: XmlResourceParser)</ID>
<ID>NestedBlockDepth:MyKeyboardView.kt$MyKeyboardView$@SuppressLint("UseCompatLoadingForDrawables") private fun onBufferDraw()</ID>
<ID>NestedBlockDepth:MyKeyboardView.kt$MyKeyboardView$override fun onTouchEvent(me: MotionEvent): Boolean</ID>
<ID>NestedBlockDepth:MyKeyboardView.kt$MyKeyboardView$private fun handleClipboard()</ID>
<ID>NestedBlockDepth:MyKeyboardView.kt$MyKeyboardView$private fun onLongPress(popupKey: MyKeyboard.Key, me: MotionEvent): Boolean</ID>
<ID>NestedBlockDepth:MyKeyboardView.kt$MyKeyboardView$private fun onModifiedTouchEvent(me: MotionEvent): Boolean</ID>
<ID>NestedBlockDepth:SimpleKeyboardIME.kt$SimpleKeyboardIME$override fun onKey(code: Int)</ID>
<ID>SpreadOperator:MyKeyboardView.kt$MyKeyboardView$(*animations.toTypedArray())</ID>
<ID>SwallowedException:ManageClipboardItemsActivity.kt$ManageClipboardItemsActivity$e: ActivityNotFoundException</ID>
<ID>SwallowedException:MyKeyboard.kt$MyKeyboard$e: Exception</ID>
<ID>TooGenericExceptionCaught:ManageClipboardItemsActivity.kt$ManageClipboardItemsActivity$e: Exception</ID>
<ID>TooGenericExceptionCaught:MyKeyboard.kt$MyKeyboard$e: Exception</ID>
<ID>TooManyFunctions:ClipsActivityAdapter.kt$ClipsActivityAdapter : MyRecyclerViewAdapterItemTouchHelperContract</ID>
<ID>TooManyFunctions:ManageClipboardItemsActivity.kt$ManageClipboardItemsActivity : SimpleActivityRefreshRecyclerViewListener</ID>
<ID>TooManyFunctions:MyKeyboardView.kt$MyKeyboardView : View</ID>
<ID>TooManyFunctions:SettingsActivity.kt$SettingsActivity : SimpleActivity</ID>
<ID>TooManyFunctions:SimpleKeyboardIME.kt$SimpleKeyboardIME : InputMethodServiceOnKeyboardActionListenerOnSharedPreferenceChangeListener</ID>
<ID>WildcardImport:ClipsKeyboardAdapter.kt$import org.fossify.commons.extensions.*</ID>
<ID>WildcardImport:ExportClipsDialog.kt$import org.fossify.commons.extensions.*</ID>
<ID>WildcardImport:ManageClipboardItemsActivity.kt$import org.fossify.commons.extensions.*</ID>
<ID>WildcardImport:ManageClipboardItemsActivity.kt$import org.fossify.commons.helpers.*</ID>
<ID>WildcardImport:SwitchLanguageDialog.kt$import org.fossify.keyboard.extensions.*</ID>
</CurrentIssues>
</SmellBaseline>