Repository navigation
refactor(channels): drop the comments that narrate or defend the code, keeping one-line WARNINGs for outside footguns - #502
Open
AVGVSTVS96 wants to merge 3 commits into
Open
AVGVSTVS96 wants to merge 3 commits into
AVGVSTVS96 wants to merge 3 commits into
Conversation
…ce ownership already takes a boolean
…, keeping one-line WARNINGs for outside footguns
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully 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.
Clears the comments out of bin/job.ts, bin/away.test.ts and 36 files under channels/, as Landmines' comment rule wants. These files had 93 comments; 32 are left, and each one is a one-line
SAFETY:on a type assertion or a one-lineWARNING:about a footgun from outside hex (Telegram's widget and getUpdates limits, T3 Code's private API and database, Buzz Desktop, NIP-AF, discord.js, iikb's read timeouts, a Siri Live Activity cut-off).tools/oxlint/allowances.jsonshrinks to match.no-commentsdisable line each one sat behind. Where a longer comment stated a real limit from outside hex, it's now a one-lineWARNING:with its link.channels/iikb/door.ts: its header said the door must import nothing from hex, becausebin/hexswaps a running door only when that file changes. A test indoor.test.tsnow checks this, so the comment could go.channels/voice/board.tscast T3's boundary check to(id) => false"until hub/running.ts types boundary as returning boolean".hub/running.tshas typed it that way since refactor: strict types, type-aware lint and zod at hex's boundaries #209, so the cast and its helper are gone.Behavior is otherwise unchanged.
channels/buzz/bot.tsandchannels/discord/bot.tsare left alone: other open work is changing them.Not fixed here
channels/voice/reconnect.test.ts: the tests after "with no call live" run one at a time because they rely on timing. They hold the engine to a window of time, wait by sleeping and race its retries. Twenty engines at once on four cores made one of them fail. The right fix is to drive them from the engine's own signals, or a clock the test controls, so they can run withtest.concurrentlike the rest.channels/voice/questions.test.ts:built()gets to the privatebuildwithquestions["build"]()to know when the view is current. The right fix is a public "current" promise, or a change event, onQuestions.The
allowances.jsoncount edits are only here while the per-file counts exist. Once #500 lands, this branch rebases and drops them.