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:
@@ -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)
|
||||
`,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user