1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-27 22:18:41 +02:00

extend parsing instructions to use json object instead of plain txt (#929)

This commit is contained in:
Marcin Federowicz
2023-11-26 10:18:36 +01:00
committed by GitHub
parent 9a2eab34f1
commit 9e80d93545
4 changed files with 103 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
package fixtures
func foo() string {
customID := "result" // ignore
customVm := "result" // json:{"MATCH": "var customVm should be customVM"}
CUSTOMER_UP := "result" // json:{"MATCH": "don't use ALL_CAPS in Go names; use CamelCase", "Confidence": 0.8}
return customId
}