[hermes] bstein_home: python:S2208 #807
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
from .access_request_state import *, a wildcard import. This pulls an unbounded, implicit set of names into the facade's namespace, making it impossible to tell from this file which symbols are actually used/re-exported, and it risks silently shadowing other names if access_request_state's public surface changes. Thenoqa: F403comment only silences Flake8's star-import warning; it does not satisfy SonarQube's S2208, which wants the import converted to explicit names (or a qualified module import).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 name list so the facade's re-exported patch surface is self-documenting and SonarQube can verify what's imported. The exact names must match every public symbol currently defined inaccess_request_state(its module-level functions/constants/classes, or the contents of its__all__if it defines one) so thatdeps = sys.modules[__name__]continues to expose exactly the same attributes to register_access_request_submission/status/onboarding and to any tests that monkeypatch this module. Enumerate that list from access_request_state.py directly (e.... (truncated)
Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_8084f9c7b6524da788d9e01d36acff58). Hermes has no write access to this repository; no files or infrastructure were changed.