(ruleName, ruleConfig, prompt)
| 84986 | "subject-max-length": (applicable, value) => llmReadableRules.maxLengthRule("subject", applicable, value), |
| 84987 | "subject-min-length": (applicable, value) => llmReadableRules.minLengthRule("subject", applicable, value), |
| 84988 | "type-case": (applicable, value) => llmReadableRules.caseRule("type", applicable, value), |
| 84989 | "type-empty": (applicable) => llmReadableRules.emptyRule("type", applicable, void 0), |
| 84990 | "type-enum": (applicable, value, prompt) => llmReadableRules.enumTypeRule("type", applicable, value, prompt), |
| 84991 | "type-max-length": (applicable, value) => llmReadableRules.maxLengthRule("type", applicable, value), |
| 84992 | "type-min-length": (applicable, value) => llmReadableRules.minLengthRule("type", applicable, value) |
| 84993 | }; |
| 84994 | var getPrompt = (ruleName, ruleConfig, prompt) => { |
| 84995 | const [severity, applicable, value] = ruleConfig; |
| 84996 | if (severity === import_types.RuleConfigSeverity.Disabled) return null; |
| 84997 | const promptFn = rulesPrompts[ruleName]; |
| 84998 | if (promptFn) { |
| 84999 | return promptFn(applicable, value, prompt); |
| 85000 | } |
no outgoing calls
no test coverage detected