Skip to content

Commit

Permalink
Configure 'ForbiddenImport' to use value and reason (#5105)
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Schwarz <post@markus-schwarz.net>
  • Loading branch information
marschwar and Markus Schwarz committed Jul 19, 2022
1 parent df219eb commit bc8bec2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/detekt/detekt.yml
Expand Up @@ -183,8 +183,10 @@ style:
ForbiddenImport:
active: true
imports:
- 'org.assertj.core.api.Assertions'
- 'org.junit.jupiter.api.Assertions*'
- value: 'org.assertj.core.api.Assertions'
reason: 'Import Assertions.assertThat instead.'
- value: 'org.junit.jupiter.api.Assertions*'
reason: 'Use AssertJ assertions instead.'
ForbiddenMethodCall:
active: true
methods:
Expand Down

0 comments on commit bc8bec2

Please sign in to comment.