sed: implement modern diagnostic like coreutils - #576
Conversation
46b0c68 to
68ccda3
Compare
68ccda3 to
7aa9e56
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #576 +/- ##
==========================================
- Coverage 83.87% 83.71% -0.17%
==========================================
Files 14 14
Lines 6977 7060 +83
Branches 407 413 +6
==========================================
+ Hits 5852 5910 +58
- Misses 1121 1145 +24
- Partials 4 5 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will degrade performance by 3.69%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ❌ | number_fix |
1.1 s | 1.3 s | -11.02% |
| ❌ | access_log_translit |
1 s | 1 s | -3.17% |
| ⚡ | access_log_subst |
2.4 s | 2.3 s | +3.69% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing modern-diag (c099152) with main (72ed709)
7aa9e56 to
c8b994d
Compare
c8b994d to
a1f4d55
Compare
a1f4d55 to
30116a2
Compare
30116a2 to
f4a7fb4
Compare
When stderr is a terminal (or UUTILS_DIAG=always), quote the offending script line and underline the faulty character, in the layout uucore's diagnostics use. Pipes and the test suite still get the single-line message. Both error constructors handle this, so no call site changes. ScriptLocation now carries the line text, captured only when diagnostics are on and shared between commands from the same line, so semantic errors raised after compilation can still be drawn. Anything that cannot be drawn (non-UTF-8 script, empty line, no line recorded) leaves the message unchanged.
f4a7fb4 to
c099152
Compare
No description provided.