[hermes] atlasbot: python:S2208 #129
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 *), so it is impossible to tell from this file which names actually come from_base, and the module-level__all__comprehension at the bottom silently re-exports whatever underscore-prefixed names_basehappens to inject into globals(). Any name added to or removed from_basechanges this module's public surface without any visible edit here.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 star import with an explicit import of exactly the names that_basecurrently exports (its__all__, or its public names if it has no__all__). Because the trailing__all__ = [name for name in globals() if name.startswith("_") and not name.startswith("__")]picks up wildcard-imported underscore names, the explicit list must include every underscore-prefixed name the star import was bringing in, or downstreamfrom ...spine import *consumers would lose them. Listing them explicitly preserves the exact same set of names in globals() — and therefore the exact same computed `_... (truncated)
Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_4e1246b776604c47a0fe8aadc4ae8fac). Hermes has no write access to this repository; no files or infrastructure were changed.