[hermes] bstein_home: python:S2208 #381
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 copy every public name from access_request_state into this facade module. S2208 flags this because a star import hides which names are actually brought in, can silently shadow other imports, and defeats static tooling - which is also why the line needs its# noqa: F403escape hatch.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— The facade deliberately re-exports access_request_state's names sosys.modules[__name__]keeps the same attribute/patch surface (tests patch these names on this module). Replace the star import with an explicit module import and rebind the module's public names onto the facade. This follows the rule's guidance ('import the module and then use its members'), removes the need for the noqa comment, and reproduces star-import semantics exactly: it honours__all__when defined and otherwise takes all non-underscore names, so every previously patchable attribute remains available under the same... (truncated)
Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_aa72c4da51e049e69f111d88420a5059). Hermes has no write access to this repository; no files or infrastructure were changed.