30598272f6
The Checkstyle publisher would not honor value of 0 and instead emit an empty XML element. This was due to the 'if someval' which would be false whenever someval is 0. Adjusted tests to match the new (and correct) behavior. While at it slightly simplified the repeating logic in checkstyle publisher. Change-Id: I7443b93aa116dc049de565ff96ca40526b390409
30 lines
1.2 KiB
XML
30 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<publishers>
|
|
<hudson.plugins.checkstyle.CheckStylePublisher>
|
|
<healthy>0</healthy>
|
|
<unHealthy>100</unHealthy>
|
|
<thresholdLimit>high</thresholdLimit>
|
|
<pluginName>[CHECKSTYLE] </pluginName>
|
|
<defaultEncoding>utf-8</defaultEncoding>
|
|
<canRunOnFailed>true</canRunOnFailed>
|
|
<useStableBuildAsReference>false</useStableBuildAsReference>
|
|
<useDeltaValues>false</useDeltaValues>
|
|
<thresholds>
|
|
<unstableTotalAll>90</unstableTotalAll>
|
|
<unstableTotalHigh>80</unstableTotalHigh>
|
|
<unstableTotalNormal>70</unstableTotalNormal>
|
|
<unstableTotalLow>60</unstableTotalLow>
|
|
<failedTotalAll>90</failedTotalAll>
|
|
<failedTotalHigh>80</failedTotalHigh>
|
|
<failedTotalNormal>70</failedTotalNormal>
|
|
<failedTotalLow>60</failedTotalLow>
|
|
</thresholds>
|
|
<shouldDetectModules>true</shouldDetectModules>
|
|
<dontComputeNew>true</dontComputeNew>
|
|
<doNotResolveRelativePaths>false</doNotResolveRelativePaths>
|
|
<pattern>**/checkstyle-result.xml</pattern>
|
|
</hudson.plugins.checkstyle.CheckStylePublisher>
|
|
</publishers>
|
|
</project>
|