This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-rng.git
commit 60c4bc787290c8a3ea02325a40fc394f5c9c75fd Author: Alex Herbert <[email protected]> AuthorDate: Sat Aug 22 13:19:01 2026 +0100 Update to commons-parent 104 Requires changes to PMD rules. --- pom.xml | 2 +- src/conf/pmd/pmd-ruleset.xml | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 358bcfaf..eca0d0ec 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ <parent> <groupId>org.apache.commons</groupId> <artifactId>commons-parent</artifactId> - <version>99</version> + <version>104</version> </parent> <artifactId>commons-rng-parent</artifactId> diff --git a/src/conf/pmd/pmd-ruleset.xml b/src/conf/pmd/pmd-ruleset.xml index 1c30be53..854e5110 100644 --- a/src/conf/pmd/pmd-ruleset.xml +++ b/src/conf/pmd/pmd-ruleset.xml @@ -121,9 +121,11 @@ or @SimpleName='Conversions' or @SimpleName='MixFunctions' or @SimpleName='LXMSupport' or @SimpleName='UniformRandomProviderSupport' or @SimpleName='RandomStreams' or @SimpleName='IntJumpDistances' or @SimpleName='LongJumpDistances' - or @SimpleName='PhiloxSupport']"/> + or @SimpleName='PhiloxSupport' or @SimpleName='NumberFactory' + or @SimpleName='InternalGamma' + or @SimpleName='Binomial' or @SimpleName='Enumerated' or @SimpleName='Poisson']"/> <!-- Allow samplers to have only factory constructors --> - <property name="utilityClassPattern" value="[A-Z][a-zA-Z0-9]+(Utils?|Helper|Sampler)" /> + <property name="utilityClassPattern" value="[A-Z][a-zA-Z0-9]+(Utils?|Helper|Samplers?)" /> </properties> </rule> <rule ref="category/java/codestyle.xml/ShortMethodName"> @@ -150,6 +152,11 @@ value="./ancestor::ClassDeclaration[@SimpleName='SplitMix64']"/> </properties> </rule> + <rule ref="category/java/codestyle.xml/VariableDeclarationUsageDistance"> + <properties> + <property name="maxDistance" value="10"/> + </properties> + </rule> <rule ref="category/java/design.xml/NPathComplexity"> <properties> @@ -250,6 +257,12 @@ or @SimpleName='FactorialLog']"/> </properties> </rule> + <rule ref="category/java/design.xml/AvoidDeeplyNestedIfStmts"> + <properties> + <property name="violationSuppressXPath" + value="./ancestor-or-self::ClassDeclaration[@SimpleName='ZigguratSampler']"/> + </properties> + </rule> <rule ref="category/java/documentation.xml/CommentRequired"> <properties>
