Skip to content

MDLSITE-4789 Prevent MDL codes in comments#1594

Open
ferranrecio wants to merge 1 commit into
moodle:mainfrom
ferranrecio:no-mdl-comments
Open

MDLSITE-4789 Prevent MDL codes in comments#1594
ferranrecio wants to merge 1 commit into
moodle:mainfrom
ferranrecio:no-mdl-comments

Conversation

@ferranrecio

Copy link
Copy Markdown
Collaborator

[Docs] Prevent MDL codes in comments

  • Replaced the permissive "feel free to include MDL-12345" guidance with an explicit guidance not to use MDL codes in standard inline comments.
  • Tightened the TODO section: added "A TODO without an MDL code is invalid." to track the work that still needs to be done.

Copilot AI review requested due to automatic review settings May 12, 2026 13:30
@netlify

netlify Bot commented May 12, 2026

Copy link
Copy Markdown

Deploy Preview for moodledevdocs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 20509b9
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/6a47c4fa2234c20009f58801
😎 Deploy Preview https://deploy-preview-1594--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Updates Moodle DevDocs guidance to discourage including MDL tracker codes in standard inline code comments, while reinforcing that TODO comments must be trackable via an MDL issue.

Changes:

  • Adds peer-review checklist items to avoid MDL references in standard comments and require MDL codes for TODOs.
  • Replaces “feel free to include MDL-12345” with an explicit “do not include MDL issue codes” admonition in the coding style policy.
  • Tightens TODO guidance by stating that a TODO without an MDL code is invalid.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
general/development/process/peer-review/index.md Adds checklist bullets covering MDL codes in comments and MDL-linked TODO requirements.
general/development/policies/codingstyle/index.md Updates commenting guidance to prohibit MDL codes in standard inline comments and strengthens TODO/MDL tracking requirements.

Comment thread general/development/process/peer-review/index.md Outdated
Comment thread general/development/policies/codingstyle/index.md Outdated
@paulholden paulholden self-requested a review May 15, 2026 08:21
Comment thread general/development/policies/codingstyle/index.md Outdated
@ferranrecio ferranrecio force-pushed the no-mdl-comments branch 2 times, most recently from ff0a838 to fac7291 Compare July 3, 2026 14:17
- Replaced the permissive "feel free to include MDL-12345" guidance with an explicit guidance not to use  MDL codes in standard inline comments.
- Tightened the TODO section: added "A TODO without an MDL code is invalid." to track the work that still needs to be done.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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