Open mahfouz72 opened 1 week ago
Looks like a false negative, approving this one.
https://checkstyle.org/checks/metrics/npathcomplexity.html#Description
Expressions Number of && and || operators in expression. No operators - 0
This check also counts expressions, so fixing when
may cause other effects here.
child of https://github.com/checkstyle/checkstyle/issues/14961
I have read check documentation:https://checkstyle.org/checks/metrics/npathcomplexity.html I have downloaded the latest checkstyle from: https://checkstyle.org/cmdline.html#Download_and_Run I have executed the cli and showed it below, as cli describes the problem better than 1,000 words
Describe what you want in detail
I expect both methods to have the same NPathComplexity. There is a problem in counting when case labels are in the switch rule
(->)