Skip to content
Closed
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
6 changes: 6 additions & 0 deletions pr_compliance_checklist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ pr_compliances:
success_criteria: "All identifiers follow the established naming patterns (camelCase, PascalCase, snake_case, etc.)"
failure_criteria: "Inconsistent or non-standard naming that deviates from project conventions"

- title: "Prefer optional chaining over non-null assertions in test assertions"
compliance_label: true
objective: "Test property access in assertions should use optional chaining (?.) instead of non-null assertions (!). Non-null assertions remain acceptable for mutation or passing values to functions (e.g. repo.save(x!))."
success_criteria: "Test assertions verify non-null (expect(x).to.not.be.null or expect(x).not.to.be.null) then access properties with optional chaining (x?.property). Iteration asserts array length before looping rather than defaulting to an empty array."
failure_criteria: "Tests use result!.property for read-only access in assertions where optional chaining would suffice."

- title: "Remove AI-generated noise"
compliance_label: true
objective: "Changes should not introduce AI-generated slop."
Expand Down
Loading