Lightlines
By github

refactor-method-complexity-reduce

github10k installs

Simplify a complex method without changing behavior.

What it does

Refactors a selected method into focused helpers to meet a cognitive complexity limit while preserving its behavior.

When to use it

Use when a method needs its cognitive complexity reduced to a specified threshold.

How to use it

Give it a method name and a complexity threshold in your project; it refactors the method into focused helpers.

What you provide

  • the method name
  • a complexity threshold
  • An existing project

Latest review

What you need · 0

No setup requirements listed.


Access · 0

No additional actions listed.