[hermes] atlasbot: python:S2208 #159
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
The module ends its wildcard import (
from ._base import *) into the same namespace it later scrapes viaglobals()to build__all__. S2208 flags the star import itself: it pulls an unknown/unbounded set of names into scope, which is what makes the fragileglobals()trick necessary in the first place and risks silent name collisions with the locally defined_spine_*helpers.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 import with an explicit module import, then merge only the private (non-dunder) names actually exposed by_baseinto this module's namespace before__all__is computed. This keeps the exact same runtime behaviour -- every underscore-prefixed name from_baseis still available inspineand still ends up in__all__-- but removes theimport *so the set of imported names is explicit and inspectable viavars(_base)instead of an implicit star import.Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_8e0af1d1d3144dd290255e8548b15ae9). Hermes has no write access to this repository; no files or infrastructure were changed.