Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions gradle/ignoreAudit.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,15 @@ task ignoreAudit {
}
}
}
// Stage 1: warn-only mode while the existing in-tree backlog is
// being swept (Rec 28 #28-5..#28-8). Flip to fail-on-violation
// by passing -PignoreAuditStrict=true once the warning count
// drops to zero. See docs/testing/IGNORE_TEST_POLICY.md.
boolean strict = project.hasProperty('ignoreAuditStrict') &&
project.property('ignoreAuditStrict') == 'true'
// Stage 2: strict-by-default. The Rec 28 #28-5..#28-6d+ sweep
// cleared every author-declared-not-a-regression-test stub; the
// surviving @Ignore annotations all carry a category + tracking
// issue ref, so the audit currently finds zero violations. New
// @Ignore additions that lack the policy form will fail CI.
// Override with -PignoreAuditStrict=false to fall back to
// warn-only mode for triage. See docs/testing/IGNORE_TEST_POLICY.md.
boolean strict = !(project.hasProperty('ignoreAuditStrict') &&
project.property('ignoreAuditStrict') == 'false')

if (!violations.isEmpty()) {
if (strict) {
Expand Down
Loading