[hermes] ariadne: python:S2208 #14
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 come from cluster_state_contract. Those names also feed this module's dynamically constructed all, so importing only the two constants used by the functions could unintentionally remove existing re-exports.
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 line with this block, leaving the functions and final all unchanged. It imports the module explicitly and retains its existing exports as a compatibility bridge: use the contract's all when present, otherwise its non-underscore names, matching the original wildcard-import behavior. Remove the temporary module alias before this file constructs all so it does not become an additional export.Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_c7874b3173bf41e2b943b50f00189c0c). Hermes has no write access to this repository; no files or infrastructure were changed.