fix(planner): drop unused dest_name/dest from _build_docker_jobs (S1172) #61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Claude/backup-script:fix/issues-27-28-S1172-planner-docker-jobs-unused-params"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #27
Closes #28
dest_nameanddestare declared onPlanner._build_docker_jobsbutnever used inside the body — the method only reads
self._config.categories.dockerand calls the (stub) docker discovery.SonarQube flagged both parameters as
python:S1172(unused method parameter).
This PR drops both parameters from the signature and updates the single
call site in
Planner._build_jobs_for_category(in thecat_name == "docker"branch) to callself._build_docker_jobs()with noarguments. The rest of the planner — including the per-category
critical-flag heuristic in
_is_critical(...)— is unaffected becausethe
dockercategory was never wired into it (it's always non-criticaltoday).
Both issues are addressed in a single PR because they touch the same
defline and the same single call site — splitting them wouldrequire interleaving two commits that each leave the file in a
broken/inconsistent state. Treat as a paired fix.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.