kisstkondoros / codemetrics

VSCode extension which shows the complexity information for TypeScript class members
Other
404 stars 20 forks source link

Cognitive Complexity #57

Closed lnfnunes closed 6 years ago

lnfnunes commented 6 years ago

Is there a roadmap or planning to implement Cognitive Complexity?

References:

kisstkondoros commented 6 years ago

Short answer: no, I have no plans for that.

Reason: mainly because the existing complexity metrics is already a pain for most of the users of the extension. You can get pretty close to the idea described in the paper by tuning the flags under codemetrics.nodeconfiguration... see package.json for the full list of configuration parameters.

The only difference which can not be configured at the moment is the aggregation of the increments considering the special handling of the nesting increment. This could be implemented in the tsmetrics-core repo (+ some sorcery in codemetrics/.../server/LuaMetrics.ts).

PR's are always welcomed however! :smile: