You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b0b429a
Browse filesBrowse the repository at this point in the historyBrowse files
chore: trim comments and add the comments rule (#22)
Rewrite the dense comments into short plain sentences, keep doc
comments only on the public surface, drop the section banners and the
doc comments that repeat a name, and add a Comments section to
CLAUDE.md. No code changes.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,14 @@ The shared types come from `@hotcodepush/protocol` the same way, pinned to a com
66
66
- Prose names the feature over-the-air (OTA) updates: "over-the-air (OTA) update" on the first mention of a surface, "OTA update" after it, and the appositive "HotCodePush, the over-the-air (OTA) update platform for React Native, Expo, Capacitor and Cordova". "Live update" is the Capacitor community's word: it stays in the `capacitor-live-updates` package name and in a list of alternative names for search, never as HotCodePush's own term.
67
67
- Wherever the supported frameworks are listed, the order is React Native, Expo, Capacitor and Cordova, the larger communities first; this repository's own sentences lead with React Native.
68
68
69
+
## Comments
70
+
71
+
- Comment only what the code cannot say: the why behind a choice, an outside quirk or limit, what a regex matches, a TODO with its issue link. Never what the code does.
72
+
- Before adding a comment, try a clearer name or a small extracted function first.
73
+
- One or two short plain sentences. Capital letter, full stop, own line above the code. No run-on sentences, no chains of possessives.
74
+
- Doc comments (JSDoc, KDoc, `///`, docstrings) only on a package's public API: one line that says what it does, then only what a caller must know.
75
+
- Never: section banners, commented-out code, change history, the same comment in two places.
76
+
69
77
## Agent workspace
70
78
71
79
-`.claude/skills/` holds the developer skills copied from `hotcodepush-team/.github`, pinned in `skills-lock.json`.
* The bundle the new JavaScript instance runs: the start's answer, the bundle of a reload the SDK asked for, else the running one.
76
-
* A reload the SDK did not ask for — `DevSettings.reload()`, react-native-restart, a development reload — serves the running bundle and the core is not told.
77
-
*/
64
+
// A reload the SDK did not ask for, such as `DevSettings.reload()`, react-native-restart or a development reload,
65
+
// serves the running bundle without telling the core.
78
66
privatefunresolveServedBundleId(): String? {
79
67
val requestedReload = loader.beginBundleRequest()
80
68
if (claimStart()) return createCore(isServedBySdk =true)?.handleAppStartBlocking(isHeadless =!ActivityManagerProcessState.isInForeground())
0 commit comments