Cognitive complexity

(Hilal Emeksiz) #1

Hello while duplication and coverage are measured cumulative or on new code as quality gate conditions, cognitive complexity is not? Are you working on this or is it useless?

(G Ann Campbell) #2


Let’s say we provided aggregate Cognitive Complexity for parity with Cyclomatic Complexity. “On New Code” metrics are calculated in large part for use in Quality Gates, and as a Quality Gate condition it would be worthless (much as I wince to apply the word), just as Cyclomatic Complexity would be. After all it’s really impossible to say generically how much complexity is too much to accomplish the job when “the job” could range from a simple calculator app to air quality monitoring on the International Space Station.