Skip to content

Conversation

@lambda47
Copy link
Contributor

@lambda47 lambda47 commented Aug 9, 2025

In the previous implementation, if the default condition was not the last one, the order of cfg_ids was incorrect

fixes #12793

@lambda47 lambda47 requested a review from camc314 as a code owner August 9, 2025 08:52
@graphite-app
Copy link
Contributor

graphite-app bot commented Aug 9, 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.

@github-actions github-actions bot added A-linter Area - Linter C-bug Category - Bug labels Aug 9, 2025
@camc314
Copy link
Contributor

camc314 commented Aug 9, 2025

thanks for the contribution, can we add a test case for this behaviour.

@lambda47 lambda47 force-pushed the fix/no-fallthrough-rule branch from 9ae4953 to b951868 Compare August 9, 2025 16:55
@lambda47
Copy link
Contributor Author

lambda47 commented Aug 9, 2025

I add the test case for it.

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 9, 2025

CodSpeed Instrumentation Performance Report

Merging #12927 will not alter performance

Comparing lambda47:fix/no-fallthrough-rule (55c3ebb) with main (bf9ae3b)1

Summary

✅ 34 untouched benchmarks

Footnotes

  1. No successful run was found on main (3ce27e9) during the generation of this report, so bf9ae3b was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@lambda47 lambda47 force-pushed the fix/no-fallthrough-rule branch from 8e2592d to b180080 Compare August 10, 2025 00:55
Copy link
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

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

thanks!

Copy link
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

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

thank you!

@camc314 camc314 merged commit 166f5cc into oxc-project:main Aug 10, 2025
26 checks passed
taearls pushed a commit to taearls/oxc that referenced this pull request Aug 12, 2025
…ot last (oxc-project#12927)

In the previous implementation, if the default condition was not the
last one, the order of cfg_ids was incorrect

fixes oxc-project#12793

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cameron Clark <cameron.clark@hey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linter: no-fallthrough has different from eslint

2 participants