Open
Description
Hi all, I'd like to propose (and implement, if someone can mentor me a bit!) a lint for Cognitive Complexity. It's a way to measure the cognitive load that a particular function puts on the reader.
I think that having an upper bound on the allowed cognitive complexity of functions would help ensure that complex functions are split into simpler, more maintainable ones. It would also help to complement the role that the Cyclomatic Complexity lint currently has.
Metadata
Metadata
Assignees
Labels
Category: Interesting projects, that usually are more involved design/code wise.Category: Enhancement of lints, like adding more cases or adding help messagesCall for participation: This a hard problem and requires more experience or effort to work onLint: Belongs in the complexity lint groupStatus: Needs further discussion before merging or work can be started