mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 20:45:29 +03:00
improve detekt score
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
5a76f3a3d3
commit
b84589a831
5 changed files with 5 additions and 1 deletions
|
@ -457,6 +457,7 @@ class ChatController(args: Bundle) :
|
|||
currentConversation?.type == Conversation.ConversationType
|
||||
.ROOM_TYPE_ONE_TO_ONE_CALL
|
||||
|
||||
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||
override fun onViewBound(view: View) {
|
||||
Log.d(TAG, "onViewBound: " + System.identityHashCode(this).toString())
|
||||
actionBar?.show()
|
||||
|
|
|
@ -336,6 +336,7 @@ class ProfileController : NewBaseController(R.layout.controller_profile) {
|
|||
}
|
||||
}
|
||||
|
||||
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||
private fun setErrorMessageForMultiList(headline: String, message: String, @DrawableRes errorResource: Int) {
|
||||
if (activity == null) {
|
||||
return
|
||||
|
|
|
@ -191,6 +191,7 @@ class ServerSelectionController :
|
|||
}
|
||||
|
||||
@SuppressLint("LongLogTag")
|
||||
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||
private fun checkServerAndProceed() {
|
||||
dispose()
|
||||
try {
|
||||
|
|
|
@ -182,6 +182,7 @@ class WebViewLoginController(args: Bundle? = null) : NewBaseController(
|
|||
return false
|
||||
}
|
||||
|
||||
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||
override fun onPageFinished(view: WebView, url: String) {
|
||||
try {
|
||||
loginStep++
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
build:
|
||||
maxIssues: 95
|
||||
maxIssues: 91
|
||||
weights:
|
||||
# complexity: 2
|
||||
# LongParameterList: 1
|
||||
|
|
Loading…
Reference in a new issue