[hermes] bstein_home: python:S2208 #259
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 facade uses
from .access_request_state import *purely so thatsys.modules[__name__](thedepsobject passed to the registrars) exposes access_request_state's names as attributes of this module; Sonar flags this because a wildcard import makes the set of names entering the namespace implicit, which risks accidental shadowing and unclear provenance for anyone reading or patching this module.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 list of the names access_request_state.py actually defines (its__all__, or its public functions/constants). This puts exactly the same names into this module's namespace -- preserving thedepspatch surface used by the registrars and by existing tests -- while satisfying S2208 by making the imported names explicit. The# noqa: F403can be dropped since it is no longer needed once the import is explicit. The exact name list depends on access_request_state.py's contents, which a maintainer needs to fill in.Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_ff4ff4f36ad14b38a2a052c58dfe93bc). Hermes has no write access to this repository; no files or infrastructure were changed.