ruff
Escape terminal controls in untrusted `ruff_annotate_snippets` text
#30877
Open

Escape terminal controls in untrusted `ruff_annotate_snippets` text #30877

MichaReiser wants to merge 12 commits into main from micha/escape-snippet-diagnostics
MichaReiser
MichaReiser Skip character decoding when snippet text needs no normalization
585bb736
MichaReiser Escape terminal controls in untrusted snippet text
2bea5ba3
MichaReiser Skip character decoding in snippet fields without terminal escapes
295bd085
MichaReiser MichaReiser added bug
MichaReiser MichaReiser added performance
MichaReiser MichaReiser added diagnostics
MichaReiser MichaReiser removed performance
MichaReiser MichaReiser changed the title Escape terminal controls and speed up normalization in `ruff_annotate_snippets` Escape terminal controls in untrusted `ruff_annotate_snippets` text 7 days ago
MichaReiser MichaReiser changed the base branch from main to micha/optimize-diagnostic-escaping 7 days ago
astral-automations-bot
codspeed
MichaReiser Match and replace nonprinting characters in a single pass
766d4156
MichaReiser Merge single-pass normalization and use the shared terminal escape ma…
5562e4a4
MichaReiser Use is_ascii_graphic and space to identify printable ASCII
c17526e6
MichaReiser Merge the printable ASCII check from the normalization branch
0ea1305e
MichaReiser Update RUF100 snapshots for the escaped NEXT LINE character
2aa74fc0
MichaReiser
MichaReiser
MichaReiser commented on 2026-11-24
epage
MichaReiser Keep binary search and test every normalization table entry
9d50ffda
MichaReiser Merge the table lookup and keep terminal escaping shared
a0aca772
MichaReiser MichaReiser force pushed from 2ecc953a to 04282b9f 4 days ago
MichaReiser perf: Speed up normalize_whitespace
6333d479
MichaReiser Merge the squashed normalization change
c8b94e47
MichaReiser MichaReiser force pushed from 04282b9f to c8b94e47 4 days ago
Base automatically changed from micha/optimize-diagnostic-escaping to main 4 days ago
MichaReiser

Login to write a write a comment.

Login via GitHub

Reviewers
No reviews
Assignees
No one assigned
Labels
Milestone