[hermes] atlasbot: python:S1871 #122
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:S1871 in
atlasbot/matrix/bot.py. The build is green; this is a standing finding, not a failure.What is wrong
The heartbeat's if and elif branches both assign should_send = True, triggering S1871 for identical branch implementations. This is redundant code, not a functional failure.
Ariadne opened no pull request for it: no automated patch was possible for this finding.
Facts
atlasbot/matrix/bot.py:170)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/matrix/bot.py— Replace the should_send initialization and following if/elif block with this merged condition, leaving the subsequent if should_send block unchanged. Short-circuiting or preserves the original evaluation order: the elapsed-time condition is evaluated only when the snippet condition is false, and should_send remains a boolean.Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_dc2ea4bf24c44a56ae707c048ce5b196). Hermes has no write access to this repository; no files or infrastructure were changed.