1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00

refactor: tiny refactoring on friendly, sarif and stylish formatters (#1355)

* refactor: replace function call by var ref and move def near utilization in friendly and stylish formatters

* refactor: makes reduces visibility of Sarif.AddResult function by renaming it as addResult

* fix: stylish formatter doesn't handle singular/plural in the synthesis message
This commit is contained in:
chavacava
2025-05-18 10:52:49 +02:00
committed by GitHub
parent f3f77bb387
commit e16f5aa5a6
4 changed files with 26 additions and 22 deletions

View File

@@ -117,7 +117,7 @@ test.go
(2, 5) https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#rule test failure
✖ 1 problem (0 errors) (1 warnings)
✖ 1 problem (0 errors) (1 warning)
`,
},
{