getcodelimit / codelimit

Your Refactoring Alarm 🔔
https://codelimit.vercel.app
GNU General Public License v3.0
34 stars 2 forks source link

support a "nocl" comment that ignores particular functions #20

Closed bbelderbos closed 1 year ago

bbelderbos commented 1 year ago

With Flake8 you can add # noqa to ignore violations for specific lines. This could be useful here as well when you don't want to include certain functions in the codelimit report (for whatever reason).

Suggestion: def my_long_function(...) # nocl

nocl = "no code limit"

robvanderleek commented 1 year ago

/cib

create-issue-branch[bot] commented 1 year ago

Branch issue-20-support_a_nocl_comment_that_ignores_particular_functions created!

robvanderleek commented 1 year ago

Hi @bbelderbos 👋

This option is in main now 🚀

Please see the documentation for some examples of how to use it.

Thanks for suggesting this feature!

bbelderbos commented 1 year ago

That's awesome @robvanderleek, thanks!