(t *testing.T)
| 135 | } |
| 136 | |
| 137 | func TestConfig_Validate_UnknownRule(t *testing.T) { |
| 138 | conf := config.NewDefault() |
| 139 | conf.Rules = append(conf.Rules, "nonexistent-rule") |
| 140 | errs := config.Validate(conf) |
| 141 | if len(errs) == 0 { |
| 142 | t.Error("expected validation errors for unknown rule") |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | func TestConfig_Validate_InvalidIgnorePattern(t *testing.T) { |
| 147 | conf := config.NewDefault() |
nothing calls this directly
no test coverage detected