The description of rule Avoid methods with too many parameters says "This rule matches methods with more than 8 parameters.". The source code finds all methods with greater than 6 parameters.
warnif count > 0 from m in JustMyCode.Methods where
m.NbParameters >= 71 vote
Instead of a binary critical or not critical flag for rules, it would be nice to have a weighting system for rules (e.g. "each violation of this rule is worth 3, but each violation of this important rule is worth 8").
Then perhaps we could assign a threshold for whether our analysis failed based on point totals, or some percentage formula.1 vote
with the technical debt support of v2017 that let’s assign a cost-to-fix and a severity estimation for each issue
- Don't see your idea?