Skip to content

fix(linter): fix whitespace handling in disable directives#13083

Merged
camc314 merged 1 commit intooxc-project:mainfrom
lambda47:fix/fix-linter-disable_directives-parse
Aug 14, 2025
Merged

fix(linter): fix whitespace handling in disable directives#13083
camc314 merged 1 commit intooxc-project:mainfrom
lambda47:fix/fix-linter-disable_directives-parse

Conversation

@lambda47
Copy link
Contributor

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

graphite-app bot commented Aug 14, 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 14, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Aug 14, 2025

CodSpeed Instrumentation Performance Report

Merging #13083 will not alter performance

Comparing lambda47:fix/fix-linter-disable_directives-parse (32be48b) with main (fe4589b)

Summary

✅ 34 untouched benchmarks

@lambda47 lambda47 force-pushed the fix/fix-linter-disable_directives-parse branch 2 times, most recently from 314b197 to 1bf8292 Compare August 14, 2025 09:06
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.

can we add a test for this change please

@lambda47
Copy link
Contributor Author

Sure, sorry, i forget it.

- fixes: oxc-project#13071
- Replace ' ' with char::is_whitespace for better whitespace detection
@lambda47 lambda47 force-pushed the fix/fix-linter-disable_directives-parse branch from 1bf8292 to 32be48b Compare August 14, 2025 09:55
@lambda47 lambda47 requested a review from camc314 August 14, 2025 09:57
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!

@camc314 camc314 merged commit c211d32 into oxc-project:main Aug 14, 2025
26 checks passed
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.

2 participants