style(detekt): Comment on all EmptyFunctionBlock cases

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2024-12-04 20:00:25 +01:00
parent f820277779
commit abebe6fcad
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
3 changed files with 6 additions and 2 deletions

View File

@ -62,9 +62,11 @@ class LeaveConversationWorker(context: Context, workerParams: WorkerParameters)
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe(object : Observer<GenericOverall?> { .subscribe(object : Observer<GenericOverall?> {
override fun onSubscribe(d: Disposable) { override fun onSubscribe(d: Disposable) {
// unused atm
} }
override fun onNext(p0: GenericOverall) { override fun onNext(p0: GenericOverall) {
// unused atm
} }
override fun onError(e: Throwable) { override fun onError(e: Throwable) {

View File

@ -197,7 +197,9 @@ object DisplayUtils {
.crossfade(true) .crossfade(true)
.transformations(CircleCropTransformation()) .transformations(CircleCropTransformation())
.target(object : Target { .target(object : Target {
override fun onStart(placeholder: Drawable?) {} override fun onStart(placeholder: Drawable?) {
// unused atm
}
override fun onError(error: Drawable?) { override fun onError(error: Drawable?) {
chip.chipIcon = error chip.chipIcon = error
} }

View File

@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors # SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
build: build:
maxIssues: 125 maxIssues: 122
weights: weights:
# complexity: 2 # complexity: 2
# LongParameterList: 1 # LongParameterList: 1