INNER CODE UNIT · JavaScript
standardsMatch
rancher/terraform-provider-rancher2 · agent-scripts/after-invoke.js:197
const standardsMatch = /standards|coding\s+standards|rules|conventions/i.test(report);
if (!standardsMatch) {
errors.push('Review report must explicitly confirm verification of repository coding standards.');
}
// 3. Spelling & Wording Check
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.');
}