2025-11-15 20:24:16 +02:00
|
|
|
package test_test
|
2023-11-26 10:18:36 +01:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
"github.com/mgechev/revive/lint"
|
|
|
|
|
"github.com/mgechev/revive/rule"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func TestJsonDataFormat(t *testing.T) {
|
2024-11-11 13:39:10 +02:00
|
|
|
testRule(t, "json_data_format_atomic", &rule.AtomicRule{})
|
2023-11-26 10:18:36 +01:00
|
|
|
}
|
2024-10-26 13:35:02 +03:00
|
|
|
|
2023-11-26 10:18:36 +01:00
|
|
|
func TestJsonDataFormatVarNaming(t *testing.T) {
|
2024-11-11 13:39:10 +02:00
|
|
|
testRule(t, "json_data_format_var_naming", &rule.VarNamingRule{}, &lint.RuleConfig{})
|
2023-11-26 10:18:36 +01:00
|
|
|
}
|