diff --git a/config/detekt/detekt.yml b/config/detekt/detekt.yml index 707987eee3f..5c347bb36e5 100644 --- a/config/detekt/detekt.yml +++ b/config/detekt/detekt.yml @@ -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: