Skip to content

chore: Enforce Minimal Code Comments - #2630

Open
camielvs wants to merge 1 commit into
masterfrom
08-13-chore_enforce_minimal_code_comments
Open

chore: Enforce Minimal Code Comments#2630
camielvs wants to merge 1 commit into
masterfrom
08-13-chore_enforce_minimal_code_comments

Conversation

@camielvs

@camielvs camielvs commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Description

Claude has been bloating our codebase with spammy code comments for far too long. This PR aims to reign in the AI and assert dominance!

Hopefully after this we will get much less long-winded and pointless code comments. Updated directives to the AI aim to remove the JSDoc standard and reduce self-explanatory code comments. The PR also does an initial high-level sweep and cleans up a few places as a proof of concept.

This should make our code more concise and readable in the long term.

Related Issue and Pull requests

Type of Change

  • Improvement
  • Cleanup/Refactor
  • Documentation update

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

Additional Comments

@github-actions

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: 08-13-chore_enforce_minimal_code_comments/7e0d865

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@camielvs
camielvs marked this pull request as ready for review August 14, 2026 01:03
@camielvs
camielvs requested a review from a team as a code owner August 14, 2026 01:03

@morgan-wowk morgan-wowk 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.

🤖 Agent review. Verified no functional directive comments were removed anywhere (no eslint-disable/@ts-*/pragmas/etc.), the one doc value change (MIN_DOCKED_HEIGHT 100→50 in WINDOWS.md) is a correct fix vs the actual constant, and the branch passes pnpm run lint. One cross-PR concern (inline).

Comment thread eslint.config.js
ignores: ["src/components/ui/**"],
plugins: { local: localRules },
rules: {
"local/no-type-member-comments": "error",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🤖 This registers no-type-member-comments at error repo-wide over src (minus ui/). This PR's own tree is clean, but any other in-flight branch that still has a JSDoc/block comment inside an interface or object-type body will start failing the lint CI job after this merges — a silent tax on rebase, not just future contributions. Consider announcing to open-PR owners, or landing as warn first then flipping to error. Minor: the rule also fires on inline object-type literals (TSTypeLiteral), where the 'rename the field' message doesn't quite fit.

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.

2 participants