Skip to content

Comments

refactor(linter/plugins): replace ! with assertIsNonNull#15947

Merged
graphite-app[bot] merged 1 commit intomainfrom
11-21-refactor_linter_plugins_replace_with_assertisnonnull_
Nov 21, 2025
Merged

refactor(linter/plugins): replace ! with assertIsNonNull#15947
graphite-app[bot] merged 1 commit intomainfrom
11-21-refactor_linter_plugins_replace_with_assertisnonnull_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Nov 21, 2025

After #15946, we're now free to use assertIsNonNull in cli.ts without breaking dead code removal. So use it instead of unchecked ! assertions. In debug build it becomes a real runtime assertion.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins labels Nov 21, 2025
@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Nov 21, 2025
Copy link
Member Author

overlookmotel commented Nov 21, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review November 21, 2025 14:20
@overlookmotel overlookmotel force-pushed the 11-21-refactor_linter_plugins_ensure_debug_assertions_always_shaken_out_of_release_build branch from 6c71108 to e0f471f Compare November 21, 2025 14:31
@overlookmotel overlookmotel force-pushed the 11-21-refactor_linter_plugins_replace_with_assertisnonnull_ branch from 5d340df to ba7b9b6 Compare November 21, 2025 14:31
@graphite-app graphite-app bot force-pushed the 11-21-refactor_linter_plugins_ensure_debug_assertions_always_shaken_out_of_release_build branch 2 times, most recently from df631d3 to 13bc9e2 Compare November 21, 2025 14:50
@graphite-app graphite-app bot force-pushed the 11-21-refactor_linter_plugins_replace_with_assertisnonnull_ branch from ba7b9b6 to dacaaf2 Compare November 21, 2025 14:50
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Nov 21, 2025
Copy link
Contributor

camc314 commented Nov 21, 2025

Merge activity

  • Nov 21, 2:55 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 21, 2:56 PM UTC: camc314 added this pull request to the Graphite merge queue.
  • Nov 21, 3:42 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 21, 3:42 PM UTC: overlookmotel added this pull request to the Graphite merge queue.
  • Nov 21, 3:47 PM UTC: Merged by the Graphite merge queue.

@graphite-app graphite-app bot force-pushed the 11-21-refactor_linter_plugins_ensure_debug_assertions_always_shaken_out_of_release_build branch from 13bc9e2 to 4ad085c Compare November 21, 2025 14:56
graphite-app bot pushed a commit that referenced this pull request Nov 21, 2025
After #15946, we're now free to use `assertIsNonNull` in `cli.ts` without breaking dead code removal. So use it instead of unchecked `!` assertions. In debug build it becomes a real runtime assertion.
@graphite-app graphite-app bot force-pushed the 11-21-refactor_linter_plugins_replace_with_assertisnonnull_ branch from dacaaf2 to 441c922 Compare November 21, 2025 14:57
@graphite-app graphite-app bot force-pushed the 11-21-refactor_linter_plugins_ensure_debug_assertions_always_shaken_out_of_release_build branch from 4ad085c to 152e5de Compare November 21, 2025 14:59
graphite-app bot pushed a commit that referenced this pull request Nov 21, 2025
After #15946, we're now free to use `assertIsNonNull` in `cli.ts` without breaking dead code removal. So use it instead of unchecked `!` assertions. In debug build it becomes a real runtime assertion.
@graphite-app graphite-app bot force-pushed the 11-21-refactor_linter_plugins_replace_with_assertisnonnull_ branch from 441c922 to de940a2 Compare November 21, 2025 15:00
Base automatically changed from 11-21-refactor_linter_plugins_ensure_debug_assertions_always_shaken_out_of_release_build to main November 21, 2025 15:05
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 21, 2025
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Nov 21, 2025
After #15946, we're now free to use `assertIsNonNull` in `cli.ts` without breaking dead code removal. So use it instead of unchecked `!` assertions. In debug build it becomes a real runtime assertion.
Copilot AI review requested due to automatic review settings November 21, 2025 15:42
@graphite-app graphite-app bot force-pushed the 11-21-refactor_linter_plugins_replace_with_assertisnonnull_ branch from de940a2 to 0ade564 Compare November 21, 2025 15:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@graphite-app graphite-app bot merged commit 0ade564 into main Nov 21, 2025
18 checks passed
@graphite-app graphite-app bot deleted the 11-21-refactor_linter_plugins_replace_with_assertisnonnull_ branch November 21, 2025 15:47
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 21, 2025
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
…ject#15947)

After oxc-project#15946, we're now free to use `assertIsNonNull` in `cli.ts` without breaking dead code removal. So use it instead of unchecked `!` assertions. In debug build it becomes a real runtime assertion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants