bitovi/bitops

Refactor get_config_list() in utilities.py

Closed this issue · 0 comments

arm4b commented

This is unfinished refactoring sub-task coming from the Add Pylint as a python static code analyzer #298.

The get_config_list() function in utilities.py is failing pylint check on:

R0914: Too many local variables (23/15) (too-many-locals)
which means the function is having too many local variables that indicate the overall monstrosity of the function.

The function needs to be restructured and divided into smaller pieces, optimized to include fewer moving parts, or perhaps extracted into a class like BitopsConfig or similar.

The check is silenced for now, don't forget to unsilence it when the refactoring is done.