Skip to content

docs(audits): simplify audit-check guide (drop CHANGELOG step and stale inventory list) - #1727

Merged
kaligrafy merged 3 commits into
chairemobilite:mainfrom
kaligrafy:docs/audit-checks-guide-cleanup
Jul 29, 2026
Merged

docs(audits): simplify audit-check guide (drop CHANGELOG step and stale inventory list)#1727
kaligrafy merged 3 commits into
chairemobilite:mainfrom
kaligrafy:docs/audit-checks-guide-cleanup

Conversation

@kaligrafy

@kaligrafy kaligrafy commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Split out of #1723 per @greenscientist's review comment — these two commits are unrelated to the I_M_ContactEmailButWouldLikeToParticipateInOtherSurveys audit check added there.

  • Drop the "add a CHANGELOG entry" step from the audit-check authoring guide: individual audit checks are not tracked in CHANGELOG.md, there are too many of them.
  • Remove the manually maintained per-object inventory list of current checks from the guide (it duplicates the source files and was already flagged as aging fast). Point to the checks/ folder and the existing rg command instead.

No code changes — documentation only (packages/evolution-backend/src/services/audits/auditChecks/README.md).

Test plan

  • Review rendered markdown

Summary by CodeRabbit

  • Documentation
    • Updated the audit check contribution guide to reflect a shorter mandatory checklist (now referencing “4. The checklist” and “5. Open a small PR”).
    • Clarified that adding an audit check does not require a CHANGELOG.md entry.
    • Enhanced the worked example with an “Inventory of current checks” section and guidance to review existing checks first to avoid duplicates.

@kaligrafy
kaligrafy force-pushed the docs/audit-checks-guide-cleanup branch from dac196f to c394d0f Compare July 15, 2026 20:22
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 9c049b4d-746a-467b-a932-e1e772bfaec0

📥 Commits

Reviewing files that changed from the base of the PR and between 34ee574 and cbd6630.

📒 Files selected for processing (1)
  • packages/evolution-backend/src/services/audits/auditChecks/README.md
📜 Recent review details
⏰ Context from checks skipped due to timeout. (6)
  • GitHub Check: check-format
  • GitHub Check: code-lint
  • GitHub Check: build-and-test (24.x)
  • GitHub Check: test-sequential (24.x)
  • GitHub Check: pr-build-check
  • GitHub Check: generate-and-build-generator (24.x)
🔇 Additional comments (1)
packages/evolution-backend/src/services/audits/auditChecks/README.md (1)

143-143: LGTM!

Also applies to: 157-157, 286-298


Walkthrough

The audit-check authoring guide now uses a shorter checklist, removes the requirement to add a CHANGELOG.md entry, and updates the worked example with an inventory of current checks and an rg command for finding existing prefixes.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the docs-only change to simplify the audit-check guide and remove the CHANGELOG step and stale inventory list.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Individual audit checks are not tracked in CHANGELOG.md, there are
too many of them. Update the guide accordingly.
The per-object list of error codes duplicated the source files and
was already flagged as aging fast. Point to the checks/ folder and
the existing grep command instead of maintaining a manual list.
@kaligrafy
kaligrafy force-pushed the docs/audit-checks-guide-cleanup branch from 169bec9 to 34ee574 Compare July 17, 2026 20:42

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/evolution-backend/src/services/audits/auditChecks/README.md (1)

298-300: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Make the inventory command match all check names.

[A-Za-z]+ excludes valid identifiers containing digits or additional underscores, so the command may omit checks despite claiming to list all current checks. Use a broader identifier pattern such as [A-Za-z0-9_]+.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/evolution-backend/src/services/audits/auditChecks/README.md` around
lines 298 - 300, Update the inventory command’s check-name regex to allow digits
and additional underscores after the prefix, replacing the restrictive
identifier pattern while preserving the existing prefix and file scope so all
valid check names are listed.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@packages/evolution-backend/src/services/audits/auditChecks/README.md`:
- Around line 298-300: Update the inventory command’s check-name regex to allow
digits and additional underscores after the prefix, replacing the restrictive
identifier pattern while preserving the existing prefix and file scope so all
valid check names are listed.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: b44854c9-0133-4cc0-a1d9-736e97ad5de5

📥 Commits

Reviewing files that changed from the base of the PR and between 06b4cac and 34ee574.

📒 Files selected for processing (1)
  • packages/evolution-backend/src/services/audits/auditChecks/README.md
📜 Review details
⏰ Context from checks skipped due to timeout. (6)
  • GitHub Check: build-and-test (24.x)
  • GitHub Check: test-sequential (24.x)
  • GitHub Check: check-format
  • GitHub Check: code-lint
  • GitHub Check: generate-and-build-generator (24.x)
  • GitHub Check: pr-build-check
🔇 Additional comments (1)
packages/evolution-backend/src/services/audits/auditChecks/README.md (1)

143-143: LGTM!

Also applies to: 157-157, 286-295

```

That's it. Run `yarn workspace evolution-backend test` and open the PR.
That's it. Run `yarn workspace evolution-backend test` and open the PR. No `CHANGELOG.md` entry needed (see §4).

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.

You mention twice that no changelog is required, that's too repetive and hard to maintain

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed

§3.1). To list all current checks:

```bash
rg -n "^\s+[IHMPJVTS]{1,2}_[MIL]_[A-Za-z]+:" \

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.

It's outside the diff, but what is RG ? I don't have than on my system

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

replaced by grep

Grep before adding to avoid duplicates. Checks live in `<Object>AuditChecks.ts`
and `<Object>ExtendedAuditChecks.ts` under
[`./checks/`](./checks/), one file per survey object type (see the table in
§3.1). To list all current checks:

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.

Put the table number on the same line as the previous one., it looks like a section number otherwise.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

The number of steps changes too often to keep in sync in the
heading (already wrong after the CHANGELOG step was dropped).

```bash
rg -n "^\s+[IHMPJVTS]{1,2}_[MIL]_[A-Za-z]+:" \
grep -rEn "^[[:space:]]+[IHMPJVTS]{1,2}_[MIL]_[A-Za-z]+:" \

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.

Encore faut-il avoir des une façon de savoir le nom exact à donner ou qui a été donné pour le chercher... pas sûr que je grepperais exactement ce qui est existant si j'essayais de faire un audit existant. Mais bon, peut-être qu'en lisant la doc, je saurais exactement le nom à donner...

@kaligrafy
kaligrafy merged commit 4b9b37a into chairemobilite:main Jul 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants