[hermes] atlasbot: python:S2208 #158
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
atlasbot/engine/answerer/spine.py. The build is green; this is a standing finding, not a failure.What is wrong
Line 9 uses a wildcard import (
from ._base import *) even though no name from_baseis referenced anywhere in spine.py. The wildcard exists only so theglobals()-based__all__at the bottom of the file re-exports_base's underscore-prefixed helpers, which hides the module's real dependency surface and is exactly what python:S2208 flags.Ariadne opened no pull request for it: no automated patch was possible for this finding.
Facts
atlasbot/engine/answerer/spine.py:9)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.
atlasbot/engine/answerer/spine.py— Replace the wildcard with an explicit import list naming every member_basecurrently exports (the names in_base.__all__, since star-import only pulls underscore-prefixed names when_basedeclares them there). Explicitly imported names still land in this module'sglobals(), so the__all__comprehension at the bottom of spine.py continues to re-export them and downstreamfrom .spine import *consumers see the identical set of names — behaviour is unchanged, but the dependency on_basebecomes visible and lintable. The names below are placeholders: copy the actual list from `_base... (truncated)
Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_07df0bb29b294d82aaf5fb139b391c9c). Hermes has no write access to this repository; no files or infrastructure were changed.