[hermes] ariadne: python:S2208 #13
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 hides which names this module depends on and imports into its namespace. Replacing it with only the two constants used in the function bodies could change behavior because the final dynamic all also re-exports imported names.
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. The snippet identifies the two dependencies visible in the function bodies, but before applying it, expand this import to include every other name currently imported from cluster_state_contract: imported names can be accessed as module attributes, and underscored names plus ClusterStateSummary and SignalContext can also be re-exported by the existing all. Keep the functions and final all unchanged. The contract file was not supplied, so the complete behavior-preserving import list cannot be determined from this file alone.Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_b926160a3c89487a8e09f45bf7d706ec). Hermes has no write access to this repository; no files or infrastructure were changed.