mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-14 16:25:05 +01:00
style(detekt): Ignore TooGenericExceptionThrown on test stub implementation
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
e4807c4972
commit
d39ccaeae2
@ -12,10 +12,12 @@ import com.nextcloud.talk.models.json.autocomplete.AutocompleteOverall
|
|||||||
import com.nextcloud.talk.models.json.conversations.RoomOverall
|
import com.nextcloud.talk.models.json.conversations.RoomOverall
|
||||||
|
|
||||||
class FakeRepositoryError : ContactsRepository {
|
class FakeRepositoryError : ContactsRepository {
|
||||||
|
@Suppress("Detekt.TooGenericExceptionThrown")
|
||||||
override suspend fun getContacts(searchQuery: String?, shareTypes: List<String>): AutocompleteOverall {
|
override suspend fun getContacts(searchQuery: String?, shareTypes: List<String>): AutocompleteOverall {
|
||||||
throw Exception("unable to fetch contacts")
|
throw Exception("unable to fetch contacts")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("Detekt.TooGenericExceptionThrown")
|
||||||
override suspend fun createRoom(
|
override suspend fun createRoom(
|
||||||
roomType: String,
|
roomType: String,
|
||||||
sourceType: String,
|
sourceType: String,
|
||||||
|
@ -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: 169
|
maxIssues: 167
|
||||||
weights:
|
weights:
|
||||||
# complexity: 2
|
# complexity: 2
|
||||||
# LongParameterList: 1
|
# LongParameterList: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user