commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Herbert <>
Subject Re: [GSoC][Commons][Statistics][Descriptive] PMD violation : Avoid short class names like Mean
Date Sat, 13 Jul 2019 22:00:52 GMT

> On 13 Jul 2019, at 21:31, Virendra singh Rajpurohit <>
> Hi All,
> I'm working on "Commons-Statistics-descriptive". While developing project with public
Mean, Variance & StandardDeviation classes, my project BUILD FAILED because of PMD violation
for short Class name "Mean". Help me with it. Also,Commons-Maths had a class "Mean", so it
should work. Don't know what is the problem here. If it doesn't work, what should I name "Mean"

Since this is the best name for the class then it is OK to make a rule exception.

Have a look at:


This is from the main directory root for statistics parent.

Add a violationSuppressXPath for the rule that is the problem. There are already some other
suppressions in the file so you just need to get the rule ref correct and adapt the rest.
The rule ref should be in the PMD result xml file generated in the target directory when you
run ‘mvn pmd:pmd’.


> --  
> Thanks  & Regards 
> Virendra Singh Rajpurohit

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message