Skip to content

Commit

Permalink
Disable formatting rules from fluxc and login modules
Browse files Browse the repository at this point in the history
They were not enabled/configured back in FluxC, so enabling them here causes hundreds of violations.

Adjust `MagicNumber` rule to also fit newly added codebase
  • Loading branch information
wzieba committed Jan 17, 2025
1 parent 3234739 commit 7b5ebd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/detekt/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ complexity:
formatting:
active: true
autoCorrect: true
excludes: ['**/fluxc/**', '**/login/**']
Indentation:
active: true
autoCorrect: true
Expand All @@ -27,6 +28,8 @@ style:
active: true
ignoreAnnotated: [ 'Module' ]
MagicNumber:
ignoreEnums: true
ignorePropertyDeclaration: true
ignoreAnnotated: [ 'Composable' ]
UnusedPrivateMember:
ignoreAnnotated: [ 'Preview', 'LightDarkThemePreviews', 'OrientationPreviews', 'FontScalePreviews', 'LayoutDirectionPreviews' ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class SignupConfirmationFragment : Fragment(), MenuProvider {
AndroidSupportInjection.inject(this)
super.onAttach(context)
if (context !is LoginListener) {
@Suppress("TooGenericExceptionThrown")
throw RuntimeException("$context must implement LoginListener")
}
mLoginListener = context
Expand Down

0 comments on commit 7b5ebd2

Please sign in to comment.