fix(hermes): repair sonar/metis/go:S3776/AZ2z_XbbKy9i4pkIqvM9 #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "hermes-repair/sonar-AZ2z_XbbKy9i4pkIqvM9"
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?
Hermes repair proposal for incident sonar/metis/go:S3776/AZ2z_XbbKy9i4pkIqvM9
Incident: sonar/metis/go:S3776/AZ2z_XbbKy9i4pkIqvM9
File:
pkg/sentinel/collector.goSonarQube finding: https://quality.bstein.dev/project/issues?resolved=false&id=metis&open=AZ2z_XbbKy9i4pkIqvM9
Analysis: Replace the two conditional CutPrefix assignments with direct assignments. CutPrefix returns an empty string when its prefix is absent, which preserves the zero-value fields while removing two cognitive-complexity branches.
Rationale: This localized change reduces parseUSBScratchFstab's cognitive complexity by two, from 17 to the allowed 15, without changing source parsing behavior.
Hermes run: run_f137e7292f184f4589e953777c3ff4af
That link opens the run itself: the prompt Hermes was given, the evidence bundle it read, the tools it called, and the JSON it returned.
Proposed by Hermes; validated and pushed by Ariadne; requires human review — no automatic merge.
Checkout
From your project repository, check out a new branch and test the changes.