Skip to content

Commit

Permalink
Ignore magic numbers in non-production code (slackhq#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
kierse authored Mar 29, 2023
1 parent ea44a29 commit c98a98a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/detekt/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ style:
ignoreAnnotated:
- 'Preview'
- 'androidx.compose.desktop.ui.tooling.preview.Preview'
MagicNumber:
# Allow magic numbers in Compose previews
ignoreAnnotated:
- 'androidx.compose.ui.tooling.preview.Preview'
- 'androidx.compose.desktop.ui.tooling.preview.Preview'
- 'Preview'

TwitterCompose:
ComposableNaming:
Expand Down

0 comments on commit c98a98a

Please sign in to comment.