[hermes] bstein_home: python:S2208 #365
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 pulls every name from access_request_state into this module with a wildcard import, which is what python:S2208 flags. The wildcard cannot simply be deleted, because register() passes this module itself as the deps namespace, so the state module's public names must remain attributes of the facade for the route modules and for tests that monkeypatch them here.
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 with an explicit module import, then mirror the state module's public names onto the facade using the same rule a star import applies (all if defined, otherwise every non-underscore name). Every name stays reachable as an attribute of this module, so deps = sys.modules[name] and any existing monkeypatching of atlas_portal.routes.access_requests keep working exactly as before, while the import itself is now explicit and the noqa: F403 marker becomes unnecessary. If access_request_state's exports are few and stable, the maintainer can simplify further by listing them... (truncated)
Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_12c6e396be55447aa2b318bea3ec14b9). Hermes has no write access to this repository; no files or infrastructure were changed.