INNER CODE UNIT · JavaScript
spellingMatch
rancher/terraform-provider-rancher2 · agent-scripts/after-invoke.js:203
const spellingMatch = /spelling|wording|typo|discrepancy/i.test(report);
if (!spellingMatch) {
errors.push(
'Review report must explicitly confirm verification of spelling and documentation/wording consistency.',
);
}
// 4. Automation Audit Check
const automationMatch = /automation\s+audit|automat(e|ed|ion)/i.test(report);
if (!automationMatch) {
errors.push('Review report must explicitly confirm conducting an automation audit of checked items.');
}
// 5. Approval Status Check
const approvalMatch = /approved|approval|perfect|pass/i.test(report);
if (!approvalMatch) {
errors.push('Review report must contain an explicit approval status declaration.');
}