Repository navigation
Remove comments that restate code or excuse gaps - #459
Conversation
Drop narration, dead commented-out code, and stale workaround notes from src, tests, and scripts. Record the comment policy in AGENTS.md. Co-authored-by: Suraj Ranganath <[email protected]>
|
🤖 Problem: narration comments, commented-out code, and notes that excused shortcuts were spread through src, tests, and scripts. Some of those notes were the only record of a real gap. Approach: delete restating comments, section banners, dead commented-out code, and obsolete workaround notes. Leave docstrings, license headers, noqa and type: ignore pragmas, and comments that explain non-obvious intent or EEGLAB parity (indexing, rounding, MATLAB formulas, line references). Add the same rule to AGENTS.md. File #454, #455, #456, #457, and #458 for gaps whose assertions were left unchanged. Tests: comment-only diff, so the existing suite is the check. ruff check and ruff format --check passed locally. Full pytest follows, then CI. |
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
Remove comments that restate the next line, commented-out dead code, obsolete TODO notes, and notes that excuse a shortcut. Runtime behavior is unchanged. AGENTS.md now allows comments only for non-obvious intent or EEGLAB parity, and forbids using them to justify workarounds, skipped tests, or loosened tolerances.
Rough removals: 630 restating comments, 100 section banners, 250 lines of commented-out code, and 25 workaround or stale notes. Five of those notes marked real gaps, now tracked in #454, #455, #456, #457, and #458. Assertions and tolerances were left as they are.
Kept comments include the runica sphering-matrix formula 2 * inv(sqrtm(cov(data'))), the note that MATLAB mtimes hides BLAS status warnings, the EEGLAB latency formula in eeg_lat2point, and the ICLabel max subtraction that avoids overflow. License headers and noqa / type: ignore pragmas stay.