-
-
Notifications
You must be signed in to change notification settings - Fork 138
Add a lint rule for outbox delivery that is never awaited #1067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dahlia
merged 11 commits into
fedify-dev:main
from
Jae-Hyuk-Jang:feat/lint-outbox-delivery-not-awaited
Sep 27, 2026
+5,849
−701
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f2ee436
Move the shared listener analysis into lib
Jae-Hyuk-Jang f70a1f0
Keep a spliced-in method body apart from its key
Jae-Hyuk-Jang 186bab4
Let rules visit each scope of the used-function walk
Jae-Hyuk-Jang c9b9dc7
Add a rule for delivery that is never awaited
Jae-Hyuk-Jang 8ddde7b
Document the delivery-not-awaited rule
Jae-Hyuk-Jang d381532
Add PR credit to the delivery-not-awaited changelog fragment
Jae-Hyuk-Jang bf25197
Follow arrays of promises and async callbacks
Jae-Hyuk-Jang ceffc55
Cover how listeners are found and how the reachability walk ends
Jae-Hyuk-Jang ef5ffb6
Say what the delivery-not-awaited rule does with arrays and callbacks
Jae-Hyuk-Jang bbc353f
Report objects and conditions that drop delivery
Jae-Hyuk-Jang 3d5b632
Document objects, conditions and helper arrays
Jae-Hyuk-Jang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| --- | ||
| links: | ||
| '#1057': https://github.com/fedify-dev/fedify/issues/1057 | ||
| '#1067': https://github.com/fedify-dev/fedify/pull/1067 | ||
| --- | ||
| - Added the `outbox-listener-delivery-not-awaited` rule to `@fedify/lint`. | ||
| It reports an outbox listener that calls `ctx.sendActivity()` or | ||
| `ctx.forwardActivity()` and drops the returned promise, so that the | ||
| activity may never leave on a runtime such as Cloudflare Workers, which | ||
| discards pending work once the response is returned. A call counts as | ||
| handled when its promise is awaited, returned, passed to `Promise.all()` | ||
| or `Promise.allSettled()`, or handed to `waitUntil()`, and `void`, | ||
| `Promise.race()` and `Promise.any()` are accepted as deliberate choices to | ||
| stop waiting. | ||
| The ESLint `recommended` configuration enables the rule as a warning and | ||
| `strict` as an error, and Oxlint users enable it by name. It is not | ||
| available in Deno Lint, which turns on every rule of a plugin at once. | ||
| [[#1057], [#1067] by Jae-Hyuk-Jang] |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.