INNER CODE UNIT · JavaScript
lintMatch
rancher/terraform-provider-rancher2 · agent-scripts/after-invoke.js:157
const lintMatch = /linter|lint|eslint|golangci-lint|tflint|static check/i.test(report);
if (!lintMatch) {
errors.push('Testing report must explicitly confirm successful static analysis and linter execution.');
}
// 2. Test execution check
const testMatch = /unit test|test suite|go test|run_tests/i.test(report);
if (!testMatch) {
errors.push(
'Testing report must explicitly confirm execution of the active unit tests or comprehensive test suites.',
);
}
// 3. Status Check
const statusMatch = /status:\s*🟢\s*SUCCESS|success|pass/i.test(report);
if (!statusMatch) {
errors.push('Testing report must contain an explicit success status declaration.');
}