Skip to content

fix(linter/hex-escape): false positive for String.raw#20497

Merged
graphite-app[bot] merged 1 commit intomainfrom
c/03-18-fix_linter_hex-escape_false_positive_for_string.raw_
Mar 18, 2026
Merged

fix(linter/hex-escape): false positive for String.raw#20497
graphite-app[bot] merged 1 commit intomainfrom
c/03-18-fix_linter_hex-escape_false_positive_for_string.raw_

Conversation

@camc314
Copy link
Copy Markdown
Contributor

@camc314 camc314 commented Mar 18, 2026

No description provided.

Copy link
Copy Markdown
Contributor Author

camc314 commented Mar 18, 2026


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 changes, fast-track this PR to the front of the merge queue

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.

@github-actions github-actions bot added the A-linter Area - Linter label Mar 18, 2026
@github-actions github-actions bot added the C-bug Category - Bug label Mar 18, 2026
@camc314 camc314 self-assigned this Mar 18, 2026
@camc314 camc314 marked this pull request as ready for review March 18, 2026 11:05
Copilot AI review requested due to automatic review settings March 18, 2026 11:05
Copy link
Copy Markdown
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.

Pull request overview

Fixes a false-positive in the unicorn/no-hex-escape lint rule by skipping hex-escape checks for template literals that are tagged with String.raw, where rewriting \x.. escapes would change runtime behavior.

Changes:

  • Skip TemplateLiteral hex-escape linting when its parent is a String.raw tagged template expression.
  • Simplify/adjust imports to match the updated logic.
  • Add a new “pass” test case intended to cover String.raw behavior.

You can also share your feedback on Copilot code review. Take the survey.

@camc314 camc314 force-pushed the c/03-18-fix_linter_hex-escape_false_positive_for_string.raw_ branch from 74e54a7 to 6ea617d Compare March 18, 2026 11:11
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 18, 2026

Merging this PR will not alter performance

🎉 Hooray! codspeed-rust just leveled up to 3.0.5!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

✅ 4 untouched benchmarks
⏩ 52 skipped benchmarks1


Comparing c/03-18-fix_linter_hex-escape_false_positive_for_string.raw_ (6ea617d) with main (50d59e9)2

Open in CodSpeed

Footnotes

  1. 52 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on graphite-base/20497 (9911ab2) during the generation of this report, so main (50d59e9) was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Mar 18, 2026
Copy link
Copy Markdown
Contributor Author

camc314 commented Mar 18, 2026

Merge activity

@graphite-app graphite-app bot changed the base branch from c/03-18-fix_linter_escape-case_false_positive_for_string.raw_ to graphite-base/20497 March 18, 2026 11:13
@graphite-app graphite-app bot changed the base branch from graphite-base/20497 to main March 18, 2026 11:20
@graphite-app graphite-app bot force-pushed the c/03-18-fix_linter_hex-escape_false_positive_for_string.raw_ branch from 6ea617d to 65a7c3c Compare March 18, 2026 11:20
@graphite-app graphite-app bot merged commit 65a7c3c into main Mar 18, 2026
21 checks passed
@graphite-app graphite-app bot deleted the c/03-18-fix_linter_hex-escape_false_positive_for_string.raw_ branch March 18, 2026 11:26
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Mar 18, 2026
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