sonarqube: v10.8 (100206)
intellij plugin: 10.13.1.80133
gradle plugin: 6.0.1.5171
org.assertj.core.api.BDDAssertions.thenNoException()
.isThrownBy(() → doThing());
sonarqube: v10.8 (100206)
intellij plugin: 10.13.1.80133
gradle plugin: 6.0.1.5171
org.assertj.core.api.BDDAssertions.thenNoException()
.isThrownBy(() → doThing());
Hi Lars,
Thank you for reporting the false positives. I have created a ticket to track this issue: Jira.
While we work on implementing the change, you can add the following to the java:S2699 customAssertionMethods: org.assertj.core.api.NotThrownAssert#isThrownBy. Here is a link to a good explanation on how to do change rules parameters: How do we change the 'parameters' to rules?.
Best regards,
Erwan