• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

peczenyj / GDPR-IAB-TCFv2 / 25491282391
95%
main: 96%

Build:
Build:
LAST BUILD BRANCH: devel
DEFAULT BRANCH: main
Ran 07 May 2026 10:59AM UTC
Jobs 1
Files 13
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 May 2026 10:48AM UTC coverage: 95.223% (+0.8%) from 94.404%
25491282391

Pull #62

github

peczenyj
chore(cli): remove --json-array; default JSONL output is enough

Removes the --json-array flag from both `iabtcfv2 dump` and
`iabtcfv2 validate`.  The default JSON Lines output (one JSON
object per line) is the universal format -- every text-processing
tool reads it directly, and `jq -s .` wraps it into a single
JSON array when callers actually need that shape.

Carrying --json-array meant carrying state-tracking code in both
subcommands: opening/closing brackets gated on quiet/text/fail-fast
combinations, comma-injection between records, the dead `_indent`
helper, plus a mutually-exclusive check between --text and
--json-array in validate.  All of that goes; the per-record print
now reduces to `print $j->encode($data) . "\n"`.

Migration: replace `iabtcfv2 dump --json-array ...` with
`iabtcfv2 dump ... | jq -s .` (or any equivalent JSONL-to-array
tool).  POD examples updated to show the jq pipeline.

Test plan:
  - t/10-cli-iabtcfv2.t: dropped the --json-array functional test;
    replaced with a JSONL-shape assertion (multiple TC strings ->
    multiple newline-separated JSON objects).
  - help-text assertion for --json-array dropped; replaced with
    --pretty.
  - Full suite passes (16536 tests; xt/critic and xt/tidy green).

This is technically a breaking CLI change three commits after
v0.370 shipped, but the migration path is one shell pipe.  Worth
the simplification.
Pull Request #62: chore(cli): remove --json-array; JSONL is enough

3 of 3 new or added lines in 1 file covered. (100.0%)

897 of 942 relevant lines covered (95.22%)

12386.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25491282391.1 07 May 2026 10:59AM UTC 13
95.22
GitHub Action Run
Source Files on build 25491282391
  • Tree
  • List 13
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #62
  • PR Base - devel (#25480792771)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc