(value any)
| 410 | } |
| 411 | |
| 412 | func asStringAnyMap(value any) (func(string) (any, bool), bool) { |
| 413 | switch m := value.(type) { |
| 414 | case *collections.OrderedMap[string, any]: |
| 415 | return m.Get, true |
| 416 | case map[string]any: |
| 417 | return func(key string) (any, bool) { |
| 418 | val, exists := m[key] |
| 419 | return val, exists |
| 420 | }, true |
| 421 | default: |
| 422 | return nil, false |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | // parseDiagnosticSeverityMap converts a plugin rule configuration map to map[string]Severity. |
| 427 | func parseDiagnosticSeverityMap(value any) map[string]Severity { |
no outgoing calls
no test coverage detected