fix(discovery): drop unused include_images/include_volumes_outside_compose from discover (S1172) #62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Claude/backup-script:fix/issues-32-33-S1172-docker-discover-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 #32
Closes #33
include_imagesandinclude_volumes_outside_composeare declared ongardien.discovery.docker.discover()but never read inside the body —the function is a stub that just returns
DockerDiscovery(enabled=enabled). SonarQube flagged both parametersas
python:S1172(unused function parameter).This PR:
discover()signature insrc/gardien/discovery/docker.py.Planner._build_docker_jobs(src/gardien/core/planner.py) tostop passing the corresponding kwargs.
The matching config flags on
DockerCategoryConfig(
include_images: bool = False,include_volumes_outside_compose: bool = True) are intentionallypreserved — they are still parsed from
host.yamland exposed onthe config model, so the caller can start using them again as soon as
the real
docker volume ls/ image-archive implementation lands. Onlythe unused parameter plumbing on the function signature is being
removed.
Both issues are addressed in a single PR because they touch the same
defline and the same single call site — splitting them wouldrequire two commits that each leave the function signature and its
caller out of sync. 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.