Skip to content

chore(qodo-config): add compliance checklist - #11921

Merged
naorpeled merged 6 commits into
masterfrom
feat/qodo/add-compliance-checklist
Jan 18, 2026
Merged

naorpeled merged 6 commits into
masterfrom
feat/qodo/add-compliance-checklist

Conversation

@naorpeled

@naorpeled naorpeled commented Jan 14, 2026 •

Copy link
Copy Markdown
Member

Description of change

Added some custom checks to Qodo's review process.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • This pull request links relevant issues as Fixes #00000
  • There are new or updated tests validating the change (tests/**.test.ts)
  • Documentation has been updated to reflect this change (docs/docs/**.md)

@naorpeled
naorpeled requested review from G0maa, alumni and gioboa January 14, 2026 23:21
@naorpeled
naorpeled marked this pull request as ready for review January 14, 2026 23:21
Copilot AI review requested due to automatic review settings January 14, 2026 23:21
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Vague Criteria

The compliance checks have subjective criteria that may be difficult to enforce consistently. For example, "Consistent Naming Conventions" doesn't specify which naming convention applies to which language construct, and "Prefer functional tests" doesn't clearly define when a github-issues test is acceptable. Consider adding more specific guidelines or examples to make these checks actionable and reduce ambiguity during reviews.

- title: "Prefer functional tests over per-issue tests"
  compliance_label: true
  objective: "Issue fixes stay in the functional test suite."
  success_criteria: "Issue fixes add or update tests in test/functional, with an issue reference in the test comment when applicable."
  failure_criteria: "Issue fixes only add tests under test/github-issues without a clear reason."

- title: "Use .test. filenames"
  compliance_label: true
  objective: "Tests use the .test. naming convention."
  success_criteria: "New or renamed tests use .test. in the filename."
  failure_criteria: "Non-.test. test files are added or modified."

- title: "Consistent Naming Conventions"
  compliance_label: true
  objective: "All new variables, functions, and classes must follow the project's established naming standards"
  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"

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Jan 14, 2026 •

Copy link
Copy Markdown

PR Code Suggestions ✨

Latest suggestions up to 7c1b3f7

CategorySuggestion                                                                                                                                    Impact
General
Use descriptive compliance labels

Replace the boolean compliance_label with descriptive string labels (e.g.,
'documentation', 'testing') to better categorize compliance checks. This change
can improve filtering and reporting.

pr_compliance_checklist.yaml [2-6]

 - title: "Docs updated for user-facing changes"
-  compliance_label: true
+  compliance_label: "documentation"
   objective: "Docs reflect public API or usage changes."
   success_criteria: "Docs or samples update with user-facing changes."
   failure_criteria: "User-facing changes without doc updates."
  • Apply / Chat
Suggestion importance[1-10]: 6

__

Why: The suggestion offers a good improvement to the configuration by proposing descriptive string labels instead of booleans for compliance_label, which could enhance filtering and reporting capabilities.

Low
Use professional objective language

Replace the informal term "AI-generated slop" with more precise, professional
language in the compliance checklist's objective. This will make the check more
actionable and less ambiguous.

pr_compliance_checklist.yaml [20-24]

 - title: "Remove AI-generated noise"
   compliance_label: true
-  objective: "Changes should not introduce AI-generated slop."
+  objective: "Changes should not introduce unnecessary code patterns or style inconsistencies."
   success_criteria: "No extra comments, abnormal defensive checks/try-catch blocks, any-casts to bypass types, or style inconsistent with the file."
-  failure_criteria: "Added AI-like comments, abnormal defensive code, any-casts to bypass type issues, or inconsistent style."
+  failure_criteria: "Added unnecessary comments, abnormal defensive code, any-casts to bypass type issues, or inconsistent style."
  • Apply / Chat
Suggestion importance[1-10]: 4

__

Why: This is a valid suggestion to improve the professionalism and clarity of the checklist by replacing an informal term with more precise language, which is a minor but positive style improvement.

Low
  • More

Previous suggestions

Suggestions up to commit 9a74458
CategorySuggestion                                                                                                                                    Impact
General
Make AI-noise criteria more objective

Make the "AI-generated noise" criteria more objective by replacing subjective
terms with concrete examples like redundant comments or unnecessary try-catch
blocks.

pr_compliance_checklist.yaml [20-24]

 - title: "Remove AI-generated noise"
   compliance_label: true
   objective: "Changes should not introduce AI-generated slop."
-  success_criteria: "No extra comments, abnormal defensive checks/try-catch blocks, any-casts to bypass types, or style inconsistent with the file."
-  failure_criteria: "Added AI-like comments, abnormal defensive code, any-casts to bypass type issues, or inconsistent style."
+  success_criteria: "No redundant comments (e.g., 'Initialize variable'), unnecessary try-catch blocks without specific error handling, type-bypassing casts (e.g., 'as any'), or style inconsistent with existing code."
+  failure_criteria: "Added redundant comments, defensive code without justification, type-bypassing casts, or inconsistent formatting/style."
Suggestion importance[1-10]: 7

__

Why: The suggestion rightly points out the subjective nature of the "AI-generated noise" criteria and offers specific, actionable examples to make the rule more objective and consistently enforceable.

Medium
Clarify documentation update requirements

Clarify the documentation update rule by specifying what constitutes a
"user-facing change" and explicitly exempting internal-only changes.

pr_compliance_checklist.yaml [2-6]

 - title: "Docs updated for user-facing changes"
   compliance_label: true
   objective: "Docs reflect public API or usage changes."
-  success_criteria: "Docs or samples update with user-facing changes."
-  failure_criteria: "User-facing changes without doc updates."
+  success_criteria: "Docs or samples update with user-facing changes (public APIs, CLI commands, configuration options, or user workflows)."
+  failure_criteria: "User-facing changes without doc updates. Internal refactoring or non-public changes are exempt."
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly identifies ambiguity in the new compliance rule and proposes concrete improvements to make it more specific and actionable, enhancing the quality of the checklist.

Low
Suggestions up to commit 752012c
CategorySuggestion                                                                                                                                    Impact
General
Clarify user-facing change criteria

Clarify the success and failure criteria for "Docs updated for user-facing
changes" by specifying what constitutes a user-facing change and acceptable
documentation formats.

pr_compliance_checklist.yaml [2-6]

 - title: "Docs updated for user-facing changes"
   compliance_label: true
   objective: "Docs reflect public API or usage changes."
-  success_criteria: "Docs or samples update with user-facing changes."
-  failure_criteria: "User-facing changes without doc updates."
+  success_criteria: "Public API changes, CLI modifications, or new configuration options include corresponding updates in README.md, API documentation, or code samples."
+  failure_criteria: "Public API changes, CLI modifications, or new configuration options lack documentation updates in README.md, API docs, or samples."
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly identifies vague criteria and proposes more specific, actionable language, which improves the clarity and enforceability of the compliance check.

Low
Define acceptable per-issue test scenarios

Refine the failure criteria for "Prefer functional tests over per-issue tests"
by replacing the subjective phrase "without a clear reason" with specific,
acceptable scenarios for per-issue tests.

pr_compliance_checklist.yaml [8-12]

 - title: "Prefer functional tests over per-issue tests"
   compliance_label: true
   objective: "Issue fixes stay in the functional test suite."
   success_criteria: "Issue fixes add or update tests in test/functional, with an issue reference in the test comment when applicable."
-  failure_criteria: "Issue fixes only add tests under test/github-issues without a clear reason."
+  failure_criteria: "Issue fixes only add tests under test/github-issues, except for isolated regression tests that cannot be integrated into existing functional test suites."
Suggestion importance[1-10]: 6

__

Why: The suggestion rightly points out that "without a clear reason" is subjective and provides a more concrete definition, making the compliance rule clearer and easier to enforce consistently.

Low
Clarify AI-generated noise patterns

Clarify the "Remove AI-generated noise" rule by replacing subjective terms with
concrete examples of what constitutes "noise," such as redundant comments or
unnecessary defensive checks.

pr_compliance_checklist.yaml [26-30]

 - title: "Remove AI-generated noise"
   compliance_label: true
-  objective: "Changes should not introduce AI-generated slop."
-  success_criteria: "No extra comments, abnormal defensive checks/try-catch blocks, any-casts to bypass types, or style inconsistent with the file."
-  failure_criteria: "Added AI-like comments, abnormal defensive code, any-casts to bypass type issues, or inconsistent style."
+  objective: "Changes should not introduce AI-generated patterns that reduce code quality."
+  success_criteria: "No redundant comments restating code logic, unnecessary defensive checks in safe contexts, type-bypassing casts (e.g., 'any'), or formatting inconsistent with existing file style."
+  failure_criteria: "Added comments that merely restate code, defensive checks without justification, type-bypassing casts, or style deviating from the file's existing patterns."
Suggestion importance[1-10]: 6

__

Why: The suggestion improves the rule by replacing subjective terms like "AI-generated slop" with more concrete examples, leading to more consistent and objective reviews.

Low
Suggestions up to commit 622fd5a
CategorySuggestion                                                                                                                                    Impact
General
Use descriptive compliance labels

Replace the boolean compliance_label: true with descriptive string labels like
'documentation' to better categorize compliance checks.

pr_compliance_checklist.yaml [2-6]

 - title: "Docs updated for user-facing changes"
-  compliance_label: true
+  compliance_label: "documentation"
   objective: "Docs reflect public API or usage changes."
   success_criteria: "Docs or samples update with user-facing changes."
   failure_criteria: "User-facing changes without doc updates."
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly points out that using a boolean for compliance_label is less expressive than using descriptive strings, and improving this would enhance categorization and reporting capabilities.

Low
Make test paths generic

Generalize the hardcoded directory paths like test/functional in the success and
failure criteria to make the checklist more reusable across different projects.

pr_compliance_checklist.yaml [14-18]

 - title: "Prefer functional tests over per-issue tests"
   compliance_label: true
   objective: "Issue fixes stay in the functional test suite."
-  success_criteria: "Issue fixes add or update tests in test/functional, with an issue reference in the test comment when applicable."
-  failure_criteria: "Issue fixes only add tests under test/github-issues without a clear reason."
+  success_criteria: "Issue fixes add or update tests in the functional test directory, with an issue reference in the test comment when applicable."
+  failure_criteria: "Issue fixes only add tests under issue-specific test directories without a clear reason."
Suggestion importance[1-10]: 5

__

Why: The suggestion correctly identifies hardcoded paths, and replacing them with generic descriptions improves the reusability of the checklist, although the impact is moderate as this might be a project-specific file.

Low
Clarify test naming flexibility

Clarify the test file naming convention to allow for common framework-specific
patterns (e.g., _test.py, *.spec.js) in addition to .test..

pr_compliance_checklist.yaml [20-24]

 - title: "Use .test. filenames"
   compliance_label: true
   objective: "Tests use the .test. naming convention."
-  success_criteria: "New or renamed tests use .test. in the filename."
-  failure_criteria: "Non-.test. test files are added or modified."
+  success_criteria: "New or renamed tests use .test. in the filename (e.g., module.test.js, component.test.py)."
+  failure_criteria: "Test files don't follow the .test. naming pattern (unless using framework-standard alternatives like _test.py or *.spec.js)."
Suggestion importance[1-10]: 4

__

Why: The suggestion correctly notes that the .test. naming convention might be too restrictive and suggests adding flexibility, which improves clarity and adaptability for different testing frameworks.

Low
Suggestions up to commit d5fdbcf
CategorySuggestion                                                                                                                                    Impact
General
Specify the exact naming convention

Make the success_criteria for naming conventions specific by stating the exact
convention to be used (e.g., snake_case for variables), instead of listing
multiple ambiguous options.

pr_compliance_checklist.yaml [26-30]

 - title: "Consistent Naming Conventions"
   compliance_label: true
   objective: "All new variables, functions, and classes must follow the project's established naming standards"
-  success_criteria: "All identifiers follow the established naming patterns (camelCase, PascalCase, snake_case, etc.)"
+  success_criteria: "All identifiers follow the project's naming convention (e.g., snake_case for variables, PascalCase for classes)."
   failure_criteria: "Inconsistent or non-standard naming that deviates from project conventions"
Suggestion importance[1-10]: 7

__

Why: The suggestion correctly points out that the success_criteria is too vague by listing multiple naming styles, and proposes making it specific, which significantly improves the clarity and enforceability of the rule.

Medium
Avoid penalizing modifications to legacy tests

Refine the failure_criteria for test filenames to apply only to new files, not
modifications of legacy files, to avoid penalizing necessary maintenance.

pr_compliance_checklist.yaml [20-24]

 - title: "Use .test. filenames"
   compliance_label: true
   objective: "Tests use the .test. naming convention."
   success_criteria: "New or renamed tests use .test. in the filename."
-  failure_criteria: "Non-.test. test files are added or modified."
+  failure_criteria: "New test files are added without using .test. in the filename."
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly identifies that the failure_criteria is too strict and would penalize modifications to legacy files, proposing a more practical rule that focuses on new and renamed files.

Low

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a compliance checklist configuration file (pr_compliance_checklist.yaml) for Qodo's automated code review tool. The checklist defines five custom review rules that align with TypeORM's established development practices around documentation, breaking changes, test organization, test naming conventions, and coding standards.

Changes:

  • Added pr_compliance_checklist.yaml with five compliance rules for Qodo PR agent

Comment thread pr_compliance_checklist.yaml Resolved
Comment thread pr_compliance_checklist.yaml Resolved
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Jan 14, 2026 •

Copy link
Copy Markdown

Code Review by Qodo (Alpha)

(Review updated until commit 9a74458)

🐞 Bugs (0) 📘 Rule Violations (0) 📎 Requirement Gaps (0) 💡 Suggestions (0)

Grey Divider

Great, No Issues Found!

Qodo reviewed your code and found no material issues that require review

Grey Divider


Previous review results

Results up to commit 752012c


🐞 Bugs (2) 📘 Rule Violations (0) 📎 Requirement Gaps (0) 💡 Suggestions (0)

Grey Divider
Action Required
1. Compliance rule contradicts existing test structure 🐞 Bug
Description
• The new compliance rule states issue fixes should add tests to test/functional and discourages
  test/github-issues (lines 8-12)
• The repository currently has hundreds of established test files in test/github-issues/ directory,
  all using the .test.ts naming convention
• This rule conflicts with existing codebase patterns and would require massive refactoring or
  create immediate violations
• DEVELOPER.md (line 88) references functional tests but doesn't discourage github-issues tests,
  showing both are valid patterns

correctness

Code

pr_compliance_checklist.yaml[R8-12]

+    - title: "Prefer functional tests over per-issue tests"
+      compliance_label: true
+      objective: "Issue fixes stay in the functional test suite."
+      success_criteria: "Issue fixes add or update tests in test/functional, with an issue reference in the test comment when applicable."
+      failure_criteria: "Issue fixes only add tests under test/github-issues without a clear reason."
Evidence
The repository structure demonstrates extensive use of test/github-issues directory with hundreds of
subdirectories (176, 493, 1089, 1200, etc.), each containing issue-specific tests using .test.ts
naming (e.g., issue-176.test.ts). The DEVELOPER.md documentation mentions functional tests but
doesn't prohibit github-issues tests. The compliance rule's failure_criteria explicitly discourages
a pattern that is widely used throughout the codebase.

pr_compliance_checklist.yaml[8-12]
DEVELOPER.md[88-88]
test/github-issues/176/issue-176.test.ts[1-20]

Agent Prompt
## Issue Description
The compliance rule 'Prefer functional tests over per-issue tests' contradicts the existing codebase structure where hundreds of tests exist in test/github-issues/ directory. This creates an immediate conflict between the new rule and established patterns.

## Issue Context
- The repository has extensive test/github-issues directory with hundreds of issue-specific test files
- All existing github-issues tests use the .test.ts naming convention
- DEVELOPER.md references functional tests but doesn't prohibit github-issues tests
- The rule's failure_criteria discourages a widely-used pattern

## Fix Focus Areas
- pr_compliance_checklist.yaml[8-12]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Subjective AI-noise rule lacks measurable criteria 🐞 Bug
Description
• The compliance rule uses undefined subjective terms: 'abnormal defensive checks', 'AI-like
  comments', 'extra comments', and 'style inconsistent'
• These terms lack objective definitions, making consistent enforcement impossible
• The rule conflates multiple distinct concerns (comments, error handling, type safety, style) into
  a single check
• Reviewers will struggle to apply this consistently, leading to either over-enforcement or
  under-enforcement

correctness

Code

pr_compliance_checklist.yaml[R26-30]

+    - title: "Remove AI-generated noise"
+      compliance_label: true
+      objective: "Changes should not introduce AI-generated slop."
+      success_criteria: "No extra comments, abnormal defensive checks/try-catch blocks, any-casts to bypass types, or style inconsistent with the file."
+      failure_criteria: "Added AI-like comments, abnormal defensive code, any-casts to bypass type issues, or inconsistent style."
Evidence
The rule text contains multiple subjective terms without clear definitions. 'Abnormal defensive
checks' is context-dependent - what's abnormal in one scenario may be necessary in another. 'AI-like
comments' and 'extra comments' require subjective judgment. 'Style inconsistent with the file' is
inherently subjective. The rule also combines unrelated concerns (comments, error handling, type
casting, style) that should be evaluated separately.

pr_compliance_checklist.yaml[26-30]

Agent Prompt
## Issue Description
The 'Remove AI-generated noise' compliance rule uses subjective terminology that cannot be consistently enforced. Terms like 'abnormal defensive checks', 'AI-like comments', and 'style inconsistent' lack objective definitions.

## Issue Context
- The rule combines multiple unrelated concerns: comments, error handling, type safety, and style
- Subjective criteria lead to inconsistent enforcement across different reviewers
- What constitutes 'abnormal' vs. legitimate error handling is context-dependent
- The rule needs to be split into separate, objective criteria

## Fix Focus Areas
- pr_compliance_checklist.yaml[26-30]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider
Results up to commit 622fd5a


🐞 Bugs (2) 📘 Rule Violations (1) 📎 Requirement Gaps (0) 💡 Suggestions (0)

Grey Divider
Action Required
✅ 1. Compliance rule contradicts existing practices 🐞 Bug
Suggestion Impact:The compliance rule 'Prefer functional tests over per-issue tests' was kept in the commit (lines 12-16), indicating the suggestion was not implemented. However, the commit did remove other compliance rules ('Breaking changes documented' and 'Use .test. filenames'), suggesting the suggestion may have prompted a review of compliance rules, though the specific problematic rule identified in the suggestion was retained.

code diff:

     - title: "Prefer functional tests over per-issue tests"
       compliance_label: true
       objective: "Issue fixes stay in the functional test suite."
       success_criteria: "Issue fixes add or update tests in test/functional, with an issue reference in the test comment when applicable."
       failure_criteria: "Issue fixes only add tests under test/github-issues without a clear reason."

Description
• The compliance rule 'Prefer functional tests over per-issue tests' (lines 14-18) contradicts the
  project's established practice of maintaining issue-specific tests in test/github-issues/
• The rule's failure_criteria states 'Issue fixes only add tests under test/github-issues without a
  clear reason', which would incorrectly flag hundreds of existing legitimate issue-specific tests
• This will create false positives in compliance checks and potentially block legitimate PRs that
  follow the established pattern

correctness

Code

pr_compliance_checklist.yaml[R14-18]

+    - title: "Prefer functional tests over per-issue tests"
+      compliance_label: true
+      objective: "Issue fixes stay in the functional test suite."
+      success_criteria: "Issue fixes add or update tests in test/functional, with an issue reference in the test comment when applicable."
+      failure_criteria: "Issue fixes only add tests under test/github-issues without a clear reason."
Evidence
The codebase has an extensive test/github-issues directory with hundreds of issue-specific tests,
demonstrating this is an accepted pattern. The DEVELOPER.md documentation acknowledges
issue-specific tests without mandating they be in test/functional. The compliance rule would
incorrectly flag this established practice as non-compliant.

test/github-issues/6066/issue-6066.test.ts[1-30]
DEVELOPER.md[90-90]
pr_compliance_checklist.yaml[14-18]

Agent Prompt
## Issue Description
The compliance rule 'Prefer functional tests over per-issue tests' contradicts the project's established practice of maintaining issue-specific tests in test/github-issues/. The rule would create false positives for legitimate issue-specific tests.

## Issue Context
- The codebase has hundreds of existing tests in test/github-issues/ (e.g., 6066, 6752, 8527, 7106, 2006, 176, 1493, 6580, etc.)
- DEVELOPER.md line 90 acknowledges issue-specific tests without mandating functional tests
- The project structure shows test/github-issues as a first-class test directory alongside test/functional

## Fix Focus Areas
- pr_compliance_checklist.yaml[14-18] - Revise or remove the 'Prefer functional tests over per-issue tests' rule to align with established project practices

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation Recommended
2. snake_case in YAML keys 📘 Rule Violation
Description
• The YAML file uses snake_case naming convention for keys (pr_compliances, compliance_label,
  success_criteria, failure_criteria)
• The project's existing YAML files consistently use kebab-case (e.g., node-version, runs-on,
  pull-request) or camelCase (e.g., subjectPattern, subjectPatternError) for keys
• This inconsistency violates the project's established naming standards for configuration files

correctness

Code

pr_compliance_checklist.yaml[R1-30]

+pr_compliances:
+    - title: "Docs updated for user-facing changes"
+      compliance_label: true
+      objective: "Docs reflect public API or usage changes."
+      success_criteria: "Docs or samples update with user-facing changes."
+      failure_criteria: "User-facing changes without doc updates."
+
+    - title: "Breaking changes documented"
+      compliance_label: true
+      objective: "Breaking changes are explicit."
+      success_criteria: "A BREAKING CHANGE note is in the PR description or commit message."
+      failure_criteria: "Breaking changes without a BREAKING CHANGE note."
+
+    - title: "Prefer functional tests over per-issue tests"
+      compliance_label: true
+      objective: "Issue fixes stay in the functional test suite."
+      success_criteria: "Issue fixes add or update tests in test/functional, with an issue reference in the test comment when applicable."
+      failure_criteria: "Issue fixes only add tests under test/github-issues without a clear reason."
+
+    - title: "Use .test. filenames"
+      compliance_label: true
+      objective: "Tests use the .test. naming convention."
+      success_criteria: "New or renamed tests use .test. in the filename."
+      failure_criteria: "Non-.test. test files are added or modified."
+
+    - title: "Consistent Naming Conventions"
+      compliance_label: true
+      objective: "All new variables, functions, and classes must follow the project's established naming standards"
+      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"
Evidence
The compliance checklist requires consistent naming conventions following established project
patterns. The project's existing YAML files in .github/workflows and .github/ISSUE_TEMPLATE use
kebab-case or camelCase for keys, not snake_case. The new file uses snake_case keys like
pr_compliances, compliance_label, success_criteria, and failure_criteria, which deviates
from the project's YAML naming conventions.

Rule 2: Generic: Meaningful Naming and Self-Documenting Code
pr_compliance_checklist.yaml[1-6]
.github/workflows/tests.yml[1-20]

Agent Prompt
## Issue description
The YAML file uses snake_case naming convention for keys, which is inconsistent with the project's established YAML naming patterns.

## Issue Context
The TypeORM project uses kebab-case (e.g., `node-version`, `runs-on`) or camelCase (e.g., `subjectPattern`) for YAML keys in configuration files. The new compliance checklist file uses snake_case keys like `pr_compliances`, `compliance_label`, `success_criteria`, and `failure_criteria`, which deviates from this convention.

## Fix Focus Areas
- pr_compliance_checklist.yaml[1-30]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Vague naming convention compliance rule 🐞 Bug
Description
• The compliance rule 'Consistent Naming Conventions' (lines 26-30) lacks specificity and references
  undefined 'established naming standards'
• The success_criteria mentions multiple conventions (camelCase, PascalCase, snake_case) without
  clarifying which should be used where
• Without clear standards or references to existing documentation, this rule is unenforceable and
  will lead to inconsistent interpretations during code review

correctness

Code

pr_compliance_checklist.yaml[R26-30]

+    - title: "Consistent Naming Conventions"
+      compliance_label: true
+      objective: "All new variables, functions, and classes must follow the project's established naming standards"
+      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"
Evidence
The compliance rule references 'established naming standards' but no such documentation exists in
the codebase. The eslint configuration doesn't include naming convention rules. Without clear
standards, the rule cannot be objectively enforced.

pr_compliance_checklist.yaml[26-30]
eslint.config.mjs[1-100]

Agent Prompt
## Issue Description
The compliance rule 'Consistent Naming Conventions' is too vague to enforce objectively. It references 'established naming standards' that don't exist in the codebase documentation or linter configuration.

## Issue Context
- No naming convention documentation found in CONTRIBUTING.md or DEVELOPER.md
- eslint.config.mjs doesn't include naming convention rules
- The rule lists multiple conventions without specifying which applies to which code element

## Fix Focus Areas
- pr_compliance_checklist.yaml[26-30] - Either add specific naming convention standards with examples, or remove the rule if it's not enforceable

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider
Results up to commit d5fdbcf


🐞 Bugs (2) 📘 Rule Violations (0) 📎 Requirement Gaps (0) 💡 Suggestions (0)

Grey Divider
Action Required
1. Configuration file not integrated into workflows 🐞 Bug
Description
• The pr_compliance_checklist.yaml file is added but has no integration with CI/CD pipelines, GitHub
  Actions, or any automation tools
• No code references this file - searches for 'pr_compliance_checklist', 'pr_compliance', and
  'compliance_label' found no matches except in the file itself
• Without integration, these compliance rules will not be enforced and the file becomes unmaintained
  dead code that may drift from actual project practices

reliability

Code

pr_compliance_checklist.yaml[R1-30]

+pr_compliances:
+    - title: "Docs updated for user-facing changes"
+      compliance_label: true
+      objective: "Docs reflect public API or usage changes."
+      success_criteria: "Docs or samples update with user-facing changes."
+      failure_criteria: "User-facing changes without doc updates."
+
+    - title: "Breaking changes documented"
+      compliance_label: true
+      objective: "Breaking changes are explicit."
+      success_criteria: "A BREAKING CHANGE note is in the PR description or commit message."
+      failure_criteria: "Breaking changes without a BREAKING CHANGE note."
+
+    - title: "Prefer functional tests over per-issue tests"
+      compliance_label: true
+      objective: "Issue fixes stay in the functional test suite."
+      success_criteria: "Issue fixes add or update tests in test/functional, with an issue reference in the test comment when applicable."
+      failure_criteria: "Issue fixes only add tests under test/github-issues without a clear reason."
+
+    - title: "Use .test. filenames"
+      compliance_label: true
+      objective: "Tests use the .test. naming convention."
+      success_criteria: "New or renamed tests use .test. in the filename."
+      failure_criteria: "Non-.test. test files are added or modified."
+
+    - title: "Consistent Naming Conventions"
+      compliance_label: true
+      objective: "All new variables, functions, and classes must follow the project's established naming standards"
+      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"
Evidence
Comprehensive search of the codebase shows no integration points for this configuration file. The
.github/workflows/pull-request.yml workflow only validates semantic PR titles using
action-semantic-pull-request, with no reference to pr_compliance_checklist.yaml. Package.json
scripts contain no compliance checking tools. No TypeScript/JavaScript files import or reference
this YAML file.

.github/workflows/pull-request.yml[1-38]
package.json[79-93]

Agent Prompt
## Issue Description
The pr_compliance_checklist.yaml configuration file is added but not integrated into any CI/CD or automation system, making it ineffective.

## Issue Context
The file defines 5 compliance rules for PRs but has no consumer. The existing PR workflow (.github/workflows/pull-request.yml) only validates semantic PR titles and doesn't reference this file.

## Fix Focus Areas
- .github/workflows/pull-request.yml[1-38] - Add a job that validates PR compliance using the YAML file
- pr_compliance_checklist.yaml[1-30] - Either integrate into automation or remove if not needed
- Alternative: Add documentation explaining this file is for manual review reference only

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation Recommended
2. Naming convention rule too vague 🐞 Bug
Description
• The 'Consistent Naming Conventions' compliance rule lists multiple naming patterns (camelCase,
  PascalCase, snake_case) without specifying which applies to which code construct
• This makes the rule subjective and unenforceable - reviewers cannot objectively determine
  compliance
• TypeScript projects typically use PascalCase for classes/interfaces, camelCase for
  variables/functions, but the rule doesn't specify this, creating ambiguity

correctness

Code

pr_compliance_checklist.yaml[R26-30]

+    - title: "Consistent Naming Conventions"
+      compliance_label: true
+      objective: "All new variables, functions, and classes must follow the project's established naming standards"
+      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"
Evidence
The rule references 'established naming patterns' but doesn't define them. Examining the TypeORM
codebase shows consistent use of PascalCase for classes (e.g., EntityManager, QueryBuilder) and
camelCase for methods/variables, but the compliance rule doesn't codify these patterns. The
success_criteria mentions multiple conventions without mapping them to specific constructs, making
it impossible to objectively validate.

pr_compliance_checklist.yaml[26-30]
src/entity-manager/EntityManager.ts[1-1]
src/query-builder/QueryBuilder.ts[1-1]

Agent Prompt
## Issue Description
The naming convention compliance rule is too vague, listing multiple naming conventions without specifying which applies where, making it unenforceable.

## Issue Context
The rule mentions 'camelCase, PascalCase, snake_case, etc.' but doesn't map these to specific code constructs. TypeScript projects have established conventions (PascalCase for types/classes, camelCase for variables/functions) that should be explicitly stated.

## Fix Focus Areas
- pr_compliance_checklist.yaml[26-30] - Replace vague rule with specific mappings: 'PascalCase for classes/interfaces/types, camelCase for variables/functions/methods, UPPER_SNAKE_CASE for constants'
- Alternative: Reference an existing TypeScript style guide or create a STYLE_GUIDE.md document and link to it

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider
Qodo Logo

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Persistent review updated to latest commit 622fd5a

@gioboa gioboa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍 I am looking forward to seeing the new behaviors
Thanks @naorpeled

@alumni alumni changed the title feat(qodo-config): add compliance checklist chore(qodo-config): add compliance checklist Jan 15, 2026
Comment thread pr_compliance_checklist.yaml Resolved
Comment thread pr_compliance_checklist.yaml Resolved
@alumni

alumni commented Jan 15, 2026

Copy link
Copy Markdown
Collaborator

Could we add something to warn us about potentially AI-generated PRs? The ones that I've seen until now were rather low quality.

@naorpeled

Copy link
Copy Markdown
Member Author

Could we add something to warn us about potentially AI-generated PRs? The ones that I've seen until now were rather low quality.

done, let me know what you think

@naorpeled
naorpeled requested a review from alumni January 16, 2026 15:56
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Persistent review updated to latest commit 752012c

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Persistent review updated to latest commit 9a74458

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jan 18, 2026 •

Copy link
Copy Markdown

Deploying typeorm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7c1b3f7
Status: ✅  Deploy successful!
Preview URL: https://11a90114.typeorm.pages.dev
Branch Preview URL: https://feat-qodo-add-compliance-che.typeorm.pages.dev

View logs

@naorpeled
naorpeled merged commit aa6d78c into master Jan 18, 2026
19 checks passed
@naorpeled
naorpeled deleted the feat/qodo/add-compliance-checklist branch January 18, 2026 16:40
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Action required

1. Review command removed despite enabled review_agent 🐞 Bug ✓ Correctness
Description
• The /review command has been removed from pr_commands and replaced with /describe, fundamentally
  changing PR automation from code review to description generation
• The review_agent remains enabled in configuration (lines 18-20), creating a mismatch between
  enabled features and available commands
• This removes automated code review functionality while keeping the review agent configuration
  active, suggesting either incomplete refactoring or misconfiguration
Code

.pr_agent.toml[3]

+    "/describe --pr_description.publish_description_as_comment=true",
Evidence
The git diff shows /review being replaced with /describe in pr_commands. The current file state
confirms review_agent is enabled (lines 18-20: '[review_agent] enabled = true publish_output =
true'). The /agentic_review command exists but serves a different purpose than the standard /review
command. No GitHub workflows reference pr_agent, indicating this is the sole configuration point for
PR automation.

.pr_agent.toml[18-20]
.pr_agent.toml[2-6]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue Description
The PR removes the /review command from pr_commands while leaving review_agent enabled in the configuration. This creates a mismatch where the review agent is configured but cannot be invoked through the standard command interface.

## Issue Context
- The /review command was replaced with /describe in the pr_commands array
- The review_agent configuration remains enabled (lines 18-20)
- The /agentic_review command exists but may serve a different purpose
- No other configuration or workflow files reference pr_agent

## Fix Focus Areas
Choose one of the following approaches:

**Option 1: Restore review functionality**
- .pr_agent.toml[3-3] - Add /review back to pr_commands array alongside /describe

**Option 2: Disable unused review_agent**
- .pr_agent.toml[18-20] - Set enabled = false or remove the review_agent section entirely

**Option 3: Document intentional change**
- Add comments in .pr_agent.toml explaining that /agentic_review replaces /review if that's the intent

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Orphaned compliance checklist configuration file 🐞 Bug ⛯ Reliability
Description
• A new pr_compliance_checklist.yaml file is added but has no integration with the codebase, CI/CD
  workflows, or pr_agent configuration
• The file defines compliance rules for docs updates, test organization, naming conventions, and
  AI-generated code, but these rules won't be enforced without integration
• This creates misleading dead configuration that may give contributors false confidence that
  compliance checks are automated
Code

pr_compliance_checklist.yaml[R1-24]

+pr_compliances:
+    - title: "Docs updated for user-facing changes"
+      compliance_label: true
+      objective: "Docs reflect public API or usage changes."
+      success_criteria: "Docs or samples update with user-facing changes."
+      failure_criteria: "User-facing changes without doc updates."
+
+    - title: "Prefer functional tests over per-issue tests"
+      compliance_label: true
+      objective: "Issue fixes stay in the functional test suite."
+      success_criteria: "Issue fixes add or update tests in test/functional, with an issue reference in the test comment when applicable."
+      failure_criteria: "Issue fixes only add tests under test/github-issues without a clear reason."
+
+    - title: "Consistent Naming Conventions"
+      compliance_label: true
+      objective: "All new variables, functions, and classes must follow the project's established naming standards"
+      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: "Remove AI-generated noise"
+      compliance_label: true
+      objective: "Changes should not introduce AI-generated slop."
+      success_criteria: "No extra comments, abnormal defensive checks/try-catch blocks, any-casts to bypass types, or style inconsistent with the file."
+      failure_criteria: "Added AI-like comments, abnormal defensive code, any-casts to bypass type issues, or inconsistent style."
Evidence
Comprehensive search of the repository shows no references to pr_compliance_checklist.yaml or
pr_compliances in any code, configuration, or workflow files. The .pr_agent.toml file (the only
pr-agent configuration) doesn't reference this file. GitHub workflow files in .github/workflows/
don't process this YAML file. The file exists in isolation with no consumers.

.pr_agent.toml[1-20]
.github/workflows/pull-request.yml[1-38]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue Description
The pr_compliance_checklist.yaml file is added but not integrated with any automation system. The compliance rules defined in this file won't be enforced, creating dead configuration.

## Issue Context
- The file defines 4 compliance rules: docs updates, test organization, naming conventions, and AI-generated code detection
- No GitHub workflows process this file
- The .pr_agent.toml configuration doesn't reference it
- No code files import or parse this YAML file
- The test directories referenced (test/functional, test/github-issues) exist and are valid

## Fix Focus Areas
**Option 1: Integrate with pr_agent**
- .pr_agent.toml[1-20] - Add configuration to reference pr_compliance_checklist.yaml
- Research pr-agent documentation for compliance checklist integration syntax

**Option 2: Remove if premature**
- pr_compliance_checklist.yaml[1-24] - Delete the file if integration isn't ready

**Option 3: Add GitHub workflow**
- Create new workflow file in .github/workflows/ to process the compliance checklist
- Reference pr_compliance_checklist.yaml in the workflow

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



ⓘ The new review experience is currently in Beta. Learn more

Qodo Logo

kranners pushed a commit to kranners/typeorm that referenced this pull request Mar 1, 2026
@pkuczynski pkuczynski added this to the 1.0 milestone Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants