This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-rng.git
commit f14035be669d2f6f87195491e151ee16784b8e24 Author: Alex Herbert <aherb...@apache.org> AuthorDate: Fri Jul 9 16:08:24 2021 +0100 Suppress logic inversion check for finite numbers --- src/main/resources/pmd/pmd-ruleset.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/resources/pmd/pmd-ruleset.xml b/src/main/resources/pmd/pmd-ruleset.xml index 2ef758b..cb3635d 100644 --- a/src/main/resources/pmd/pmd-ruleset.xml +++ b/src/main/resources/pmd/pmd-ruleset.xml @@ -132,6 +132,12 @@ <property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[@SimpleName='MarsagliaTsangWangDiscreteSampler']"/> </properties> </rule> + <rule ref="category/java/design.xml/LogicInversion"> + <properties> + <!-- Logic inversion mimics !Double.isFinite(x) --> + <property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[@SimpleName='GaussianSampler']"/> + </properties> + </rule> <rule ref="category/java/errorprone.xml/AvoidLiteralsInIfCondition"> <properties>