Skip to content

Version 1.1.1#8

Merged
tilo merged 3 commits into
mainfrom
version-1.1.1
Jun 11, 2026
Merged

Version 1.1.1#8
tilo merged 3 commits into
mainfrom
version-1.1.1

Conversation

@tilo

@tilo tilo commented Jun 11, 2026

Copy link
Copy Markdown
Owner

unifying warnings

tilo and others added 2 commits June 11, 2026 11:07
The C parser had separate warning emission sites from the Ruby parser and had
drifted: empty_value / duplicate_key dropped the key name (and duplicate_key the
resolution strategy), and duplicate_key reported the wrong column. Bring the C
messages up to the Ruby contract, and attribute the duplicate-key warning to the
duplicate member's value position (a parallel offset array on the value stack) so
the line/col match on single-line, multiline, and nested objects.

Adds spec/warning_parity_spec.rb: per-type [true,false] message+line+col checks
plus a cross-path equality test over every warning type — the coverage that was
missing and would have caught this drift. Suite 1,097 green, 100% coverage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.83%. Comparing base (a5f3eac) to head (6b93a1b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #8   +/-   ##
=======================================
  Coverage   99.83%   99.83%           
=======================================
  Files           7        7           
  Lines        1193     1193           
=======================================
  Hits         1191     1191           
  Misses          2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…ost)

The duplicate-key warning position array (pptr) is only read when an on_warning
handler is present, so allocate and write it only then. Parses without a handler —
the common case — now do no extra allocation or per-push store; pptr stays NULL.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tilo tilo merged commit f917050 into main Jun 11, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant