Skip to content

docs(contributing): legibility guidelines — comments state behavior, not history - #14135

Merged
glours merged 1 commit into
docker:mainfrom
ndeloof:g4-legibility-guidelines
Aug 27, 2026
Merged

docs(contributing): legibility guidelines — comments state behavior, not history#14135
glours merged 1 commit into
docker:mainfrom
ndeloof:g4-legibility-guidelines

Conversation

@ndeloof

@ndeloof ndeloof commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Epic #14074, section G: a short legibility section in CONTRIBUTING.md. Also amends coding-style rule 4, whose "tell us the why, the history and the context" wording is how the section-A findings were born.

🤖 Generated with Claude Code

…not history

The 'why, history and context' guidance was how the section-A findings of
epic docker#14074 were born: comments justifying code by referencing since-
deleted code. Rule 4 now asks for behavioral statements, and a Legibility
section spells out the map-must-stay-truthful rules for comments, file
names and error messages.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof
ndeloof requested review from a team as code owners August 27, 2026 07:42
@ndeloof
ndeloof requested a review from glours August 27, 2026 07:42

@docker-agent docker-agent 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.

Assessment: 🟢 APPROVE

This is a clean, focused documentation PR that:

  • Sharpens Coding Style rule 4 to steer comments toward current behavior rather than history
  • Adds a concise new Legibility section (4 sub-rules) reinforcing truthful naming, comments, and error messages

The cross-reference anchor [Legibility](#legibility) in rule 4 resolves correctly to the new heading. No contradictions with existing CONTRIBUTING.md content were found. No code is changed.

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@glours glours 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.

LGTM

@glours
glours merged commit 926a61b into docker:main Aug 27, 2026
50 of 51 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