improve detekt score

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-05-09 16:51:05 +02:00
parent 5a76f3a3d3
commit b84589a831
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
5 changed files with 5 additions and 1 deletions

View file

@ -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()

View file

@ -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

View file

@ -191,6 +191,7 @@ class ServerSelectionController :
}
@SuppressLint("LongLogTag")
@Suppress("Detekt.TooGenericExceptionCaught")
private fun checkServerAndProceed() {
dispose()
try {

View file

@ -182,6 +182,7 @@ class WebViewLoginController(args: Bundle? = null) : NewBaseController(
return false
}
@Suppress("Detekt.TooGenericExceptionCaught")
override fun onPageFinished(view: WebView, url: String) {
try {
loginStep++

View file

@ -1,5 +1,5 @@
build:
maxIssues: 95
maxIssues: 91
weights:
# complexity: 2
# LongParameterList: 1