You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2026/04/13 13:18:39 UTC

(ofbiz-framework) 04/05: Fixed: Disable the unused CrapMetric rule.

This is an automated email from the ASF dual-hosted git repository.

jacopoc pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git

commit b25f6037d56d29c72e9a0bd1e433487483fd4dd8
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Fri Apr 10 09:59:57 2026 +0200

    Fixed: Disable the unused CrapMetric rule.
    
    The incomplete definition of this rule was causing warning messages during CodeNarc execution:
    "The Cobertura XML file [null] is not accessible; skipping this rule"
    
    (cherry picked from commit 4f0b99bca321cf8a69d59f78edde43637089058a)
---
 config/codenarc/codenarc.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/codenarc/codenarc.groovy b/config/codenarc/codenarc.groovy
index 2534597afe..14e40e3599 100644
--- a/config/codenarc/codenarc.groovy
+++ b/config/codenarc/codenarc.groovy
@@ -368,7 +368,7 @@ ruleset {
     // rulesets/size.xml
     // TODO : need refactoring AbcMetric   // Requires the GMetrics jar
     ClassSize
-    CrapMetric   // Requires the GMetrics jar and a Cobertura coverage file
+    // CrapMetric   // Requires the GMetrics jar and a Cobertura coverage file
     // TODO : need refactoring CyclomaticComplexity   // Requires the GMetrics jar
     MethodCount
     // TODO : need refactoring MethodSize