[hermes] bstein_home: python:S2208 #46
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
Line 8 uses a wildcard import (
from .access_request_state import *) to pull the submodule's names into this facade's namespace so thatdeps = sys.modules[__name__]exposes them to the registration functions; SonarQube flags this because it imports an unknown, unbounded set of names into the module's namespace instead of the specific names actually needed.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 the wildcard import with an explicit import ofaccess_request_stateas a module, then republish its public attributes into this module's globals sodeps = sys.modules[__name__]still exposes every name that callers/tests currently patch on this facade (preserving the existing patch surface) without importing an unbounded, unnamed set of symbols.Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_975adf045c1642c58f10fde92a82e014). Hermes has no write access to this repository; no files or infrastructure were changed.