A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/445 below:

the three *CyclomaticComplexityRules should be merged together · Issue #445 · pmd/pmd · GitHub

Rule Set: java/codesize

Description: The codesize ruleset currently has three different rules to calculate variants of the Cyclomatic Complexity (Cyclo) of a class/ method:

I've refactored those rules to use the new Metrics Framework (coming soon!), however I don't see the point of keeping them separated, for the following reasons:

I've been working on the ability for metrics to accept options to easily amend part of their behaviour. I believe Cyclo should only be one metric, of which variants can be selected via an option.

I think we could make one rule to rule them all from the three existing ones, and enforce the "standard" calculation of the metric as default behaviour (nice but not essential). The variant could be selected via a rule property. Merging the three rules would only be suitable for a major version but hopefully we can at least refactor them to use metrics once the ruleset schema is updated :) Comments?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4