Repository navigation
chore: remove history from comments - #83
Merged
Merged
Conversation
Removes comments, or the parts of them, that name people, dates, calls, call logs, design rounds, tickets, QA ids and commit hashes, such as "Victor (Oct 23):", "From a call log:", "Kit's bug", "Sol finding 5", "round 4, H", "(D-31 B)", "(p229)" and "(QA D-01)". That history belongs in commit messages and PR descriptions (AGENTS.md, Comments). Where a comment also said something true of the current code, that part stays in a line; where it only restated the code or the test name, the comment is gone. Comments only: a script checks that every .kt file is identical once comments are stripped, that every changed line is a comment or blank, and that no stray blank lines are left. scripts/check.sh passes.
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes history from code comments: people's names, dates, calls and call logs, design rounds and options, tickets and QA ids, and commit hashes. Some examples are "Victor (Oct 23):", "Nov 1 call:", "From a call log:", "Kit's bug", "Sol finding 5", "(round 4, H)", "(D-31 B)", "(p229)", "(QA D-01)" and "(wisp b55d486)". #77 missed these. AGENTS.md's Comments rule says this history belongs in commits and PRs.
When a comment also said something true about the current code, that part stays as one short line. When the rest only restated the code or the test name, the whole comment is gone. Framework names (UIKit's, CryptoKit's), the "call log" feature, format examples ("abc1234", "Mon, Oct 5"), P-256, and the
b/549552303Compose workaround stay. User-facing text, test data and assertions are unchanged.Comments only. A script checks every changed
.ktfile: the code is identical once comments are stripped, every changed line is a comment or blank, and there are no stray blank lines. 71 files, 254 comment lines removed, 171 rewritten back in (net −83).scripts/check.shpasses. There's no UI change, so there's no media.Skipped because open PRs touch them. These still have history and need a later pass:
app/.../AppFeature.kt(Digital assistant: hold the side button to talk to OpenCode (Experimental) #31): "round 2b"app/.../AppView.kt(Digital assistant: hold the side button to talk to OpenCode (Experimental) #31, Consolidate fullscreen image and file viewers #63, Page through and draw on videos in the shared fullscreen viewer #64): "QA OB-B-01"feature/drawer/.../HomeFeatureComposition.kt(Port iOS fixes from 01eef583..911ab132 #80): "cd04514c"feature/session/.../SessionTranscriptView.kt(Draw on full-screen images and add them to the prompt #60, Consolidate fullscreen image and file viewers #63, Page through and draw on videos in the shared fullscreen viewer #64): iOS hashes "cd6be7c6" and "b629d780"feature/session/.../SessionView.kt(Draw on full-screen images and add them to the prompt #60, Consolidate fullscreen image and file viewers #63, Page through and draw on videos in the shared fullscreen viewer #64, Port iOS fixes from 01eef583..911ab132 #80): "F-38", "p217", "d0b24aaa", "QA P-06", "QA AB-02"feature/session/.../SessionFeatureTestsComposer.kt(Draw on full-screen images and add them to the prompt #60, Consolidate fullscreen image and file viewers #63, Page through and draw on videos in the shared fullscreen viewer #64): "60dddffa"feature/settings/.../SettingsView.kt(Digital assistant: hold the side button to talk to OpenCode (Experimental) #31, feat(settings): add a Language setting #82): "QA U-02", "QA W-05"feature/voice/.../FloatingCall.kt(Digital assistant: hold the side button to talk to OpenCode (Experimental) #31): "D-147 option 3"