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

DrRataplan / xq-lsp / 40284214638
94%

Build:
DEFAULT BRANCH: main
Ran 26 Oct 2026 07:11AM UTC
Jobs 1
Files 37
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

26 Oct 2026 07:10AM UTC coverage: 94.295% (+0.03%) from 94.266%
40284214638

push

github

web-flow
feat(diagnostics): opt-in strict cardinality checking (#188)

* feat(diagnostics): opt-in strict cardinality checking

Adds an opt-in strict mode, configured via the "strict" map in
lsp-config.xq:

    map { "glob": "src/**/*.xq", "strict": map { "cardinality": true() } }

With "cardinality": true(), the type checker warns (XPTY0004 at warning
severity) when an argument's inferred cardinality is not guaranteed to
fit the parameter's occurrence indicator — a possible dynamic XPTY0004,
e.g. passing item()* where item() is expected, or item()? where item()+
is expected. The check reuses the existing occurrence machinery and
respects narrowing: inside if (exists($x)) an item()* variable counts
as item()+.

Default behavior is unchanged: strict checks are off unless configured,
and the QT4 coverage harness runs diagnostics twice — the default run
drives pass/fail as before, while a second strict run records
warning-severity codes in a separate per-test-set snapshot
(<slug>.strict.snap) so strict-mode coverage is tracked without
affecting outcomes. Baseline: 785 strict warnings across 107 of 481
QT4 test-sets.

* fix: remove strict mode diagnostics

Way too much fuzz. A lot of tests have possible strict mode errors

2462 of 2805 branches covered (87.77%)

Branch coverage included in aggregate %.

61 of 63 new or added lines in 5 files covered. (96.83%)

7570 of 7834 relevant lines covered (96.63%)

900369.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
92.44
0.69% src/config.ts
1
97.96
0.17% src/qt4-worker.ts
Jobs
ID Job ID Ran Files Coverage
1 40284214638.1 26 Oct 2026 07:11AM UTC 37
94.29
GitHub Action Run
Source Files on build 40284214638
  • Tree
  • List 37
  • Changed 19
  • Source Changed 5
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #40284214638
  • f5570ee7 on github
  • Prev Build on main (#40283942481)
  • Next Build on main (#40284603818)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc