Skip to content

Commit

Permalink
Added exceptions rule set
Browse files Browse the repository at this point in the history
  • Loading branch information
imashnake0 committed Jan 21, 2024
1 parent a73ef00 commit 6968187
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import java.io.IOException
import javax.inject.Inject

@HiltViewModel
@Suppress("detekt:SwallowedException")
class MediaPageViewModel @Inject constructor(
savedStateHandle: SavedStateHandle,
private val mediaRepository: AnilistMediaRepository
Expand Down
12 changes: 12 additions & 0 deletions config/detekt/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ empty-blocks:
EmptyWhileBlock:
active: true

exceptions:
NotImplementedDeclaration:
active: true
SwallowedException:
active: true
ThrowingExceptionsWithoutMessageOrCause:
active: true
TooGenericExceptionThrown:
active: true
TooGenericExceptionCaught:
active: true

style:
UnusedImports:
active: true
Expand Down

0 comments on commit 6968187

Please sign in to comment.