fix(hermes): repair sonar/metis/go:S1192/AZ2z_XbvKy9i4pkIqvM- #2
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "hermes-repair/sonar-AZ2z_XbvKy9i4pkIqvM"
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:S1192/AZ2z_XbvKy9i4pkIqvM-
Incident: sonar/metis/go:S1192/AZ2z_XbvKy9i4pkIqvM-
File:
cmd/metis/remote_artifacts.goSonarQube finding: https://quality.bstein.dev/project/issues?resolved=false&id=metis&open=AZ2z_XbvKy9i4pkIqvM-
Analysis: The literal "%w: %s" is duplicated in four oras command error paths. A package-level constant removes the duplication while preserving the exact error formatting and behavior.
Rationale: Define the duplicated format string once, then replace each of the four fmt.Errorf format literals with orasCommandErrorFormat. This is a localized behavior-preserving Sonar S1192 fix.
Hermes run: run_284a37b1c28c4611a9f2d4587095aa20
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.