[hermes] ariadne: python:S2208 #10
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 wildcard import obscures which names this module imports and re-exports. Because the final all includes imported underscore-prefixed names and both contract classes, importing only the two constants used by the profile functions would change the module's existing interface.
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 only the wildcard import with this explicit import list, leaving the functions and all unchanged. This names every export currently provided by cluster_state_contract in its existing order, preserving both the profile calculations and this module's re-exported interface without suppressing S2208.Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_20193457604f49e886ef68a2bc4b5923). Hermes has no write access to this repository; no files or infrastructure were changed.