[code-quality] Locally increase max-complexity?

Michael McNeil Forbes michael.forbes+python at gmail.com
Sun Mar 8 06:16:18 CET 2015


Following the NIST recommendation:

"For each module, either limit cyclomatic complexity to [the agreed-upon limit] or provide a written explanation of why the limit was exceeded."

Is there a way of providing a "written explanation" for functions with one of

# pragma: max-complexity 15
# flake8: max-complexity 15

etc.?

Michael.


More information about the code-quality mailing list