[hermes] ariadne: python:S2208 #144
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
ariadne/services/cluster_state_profiles.py. The build is green; this is a standing finding, not a failure.What is wrong
The module uses a wildcard import from cluster_state_contract, which obscures its dependencies and triggers S2208. Importing the four names used or re-exported by this module explicitly preserves its current behavior.
Ariadne opened no pull request for it: no automated patch was possible for this finding.
Facts
ariadne/services/cluster_state_profiles.py:5)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.
ariadne/services/cluster_state_profiles.py— Replace the wildcard import with explicit imports for the two constants used by the profile builders and the two contract types retained in all. This keeps the same available globals and exports without importing unrelated names.Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_02b138519e174242ba8dc631645b1bce). Hermes has no write access to this repository; no files or infrastructure were changed.