[hermes] atlasbot: python:S1871 #8
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 timeout handler has two adjacent branches for "quick" and "fast" that execute the same code. Combine their conditions into one membership check without changing the produced message or control flow.
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— The "quick" and "fast" branches produce the identical timeout message. Testing both modes in one condition removes the duplicated implementation while preserving behavior exactly.Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_f4482cb89561459c830899a3ca2db15b). Hermes has no write access to this repository; no files or infrastructure were changed.