[hermes] bstein_home: python:S2208 #288
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
SonarQube reports python:S2208 in
backend/atlas_portal/routes/access_requests.py. The build is green; this is a standing finding, not a failure.What is wrong
The wildcard import makes the facade's dependencies and re-exported names implicit. Because route registration receives this facade module as its dependency object, replacing it with the state module would change the existing monkeypatch surface.
Ariadne opened no pull request for it: no automated patch was possible for this finding.
Facts
backend/atlas_portal/routes/access_requests.py:8)Suggested fix (not applied)
Hermes could not open a pull request for this, so the change below was not written, validated, or pushed anywhere. It is a starting point for whoever picks this up, not a reviewed patch.
backend/atlas_portal/routes/access_requests.py— Replace only the wildcard-import line, including its noqa comment, with explicit imports of every name it currently exposes. The state module's contents were not supplied, so the helper below generates that replacement block rather than guessing names: run it separately in the configured backend Python environment and paste its output at the original import location; do not add the helper to the application. It respects all when present and otherwise selects non-underscore module names, matching wildcard-import selection. Same-name aliases make the facade's re-exports explicit. Leave sys.m... (truncated)
Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_bcdfa4b6ab594f50b7ec623796fe833d). Hermes has no write access to this repository; no files or infrastructure were changed.