You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add to this, the Chef class probably should not exist.
All of the chef's operations are actually operations on DomainPot, or Domain
All of the args passed to Chef are then just passed to run_checks and ultimately down the line
It's honestly incredibly confusing with the number of functions that just get daisey chained without the reader really understanding why, IMO: global run checks-> chef run checks -> chef grab_cdn -> global chef_executor (huh?) -> detectCDN.cdnCheck() -> all_checks() is a lot more complicated than it could be, to do what amounts to a single operation. The last item in that chain, all_checks already runs on a domain object, so why do I pass the arguments through so many layers that don't really do anything?
There's a lot of things that could be broken out into separate files for easier readability
Proposal
The codebase could use another pass to cleanup/adjust to improve future maintainability.
Motivation
The codebase should more strictly follow Python convention to hopefully improve maintainability.
Work
I created a branch and added pylint to the pre-commit configuration with a slightly tweaked configuration file (
.pylintrc
) to pare down to more "essential" tests. Thelint
run can be found at https://github.com/cisagov/findcdn/runs/894966344?check_suite_focus=trueThe text was updated successfully, but these errors were encountered: