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

DrRataplan / xq-lsp / 26248711762
93%

Build:
DEFAULT BRANCH: main
Ran 21 May 2026 07:37PM UTC
Jobs 1
Files 12
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

21 May 2026 07:36PM UTC coverage: 89.781% (+3.5%) from 86.285%
26248711762

push

github

web-flow
fix: scope-aware type checking for function params and bindings (#24)

* fix: isolate variable type scopes per function to eliminate cross-function false positives

Each named function declaration now gets its own variable type scope
(module-level vars + its own params + its own let/for bindings).
InlineFunctionExpr nodes also get isolated scopes.

Previously buildVarTypes collected all bindings from the entire module
into a single flat map, causing params from one function (e.g. m:baz's
$some-random-name as xs:string) to pollute type inference in sibling
functions (e.g. m:entry's untyped let $some-random-name := m:foo()),
producing spurious XPTY0004 warnings.

Fixes #21

https://claude.ai/code/session_01NwsEpir4V7bUr5S6VRN5AU

* fix: preserve full type string for map/array/function in parseType

parseType was discarding the content of map(*), array(*), and
function(*) types, so formatType rendered them as "map", "array",
"function" — missing the parentheses and content in error messages.

Storing the full base type in the name field (same pattern as node
kinds) makes formatType produce the correct "map(*)", "array(*)",
"function(*)" strings.

https://claude.ai/code/session_01NwsEpir4V7bUr5S6VRN5AU

---------

Co-authored-by: Claude <noreply@anthropic.com>

413 of 536 branches covered (77.05%)

Branch coverage included in aggregate %.

110 of 117 new or added lines in 1 file covered. (94.02%)

44 existing lines in 3 files now uncovered.

1634 of 1744 relevant lines covered (93.69%)

1757.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
89.47
-0.14% src/typechecker.ts

Coverage Regressions

Lines Coverage ∆ File
32
75.19
8.78% src/features.ts
9
94.81
0.27% src/analyzer.ts
3
89.47
-0.14% src/typechecker.ts
Jobs
ID Job ID Ran Files Coverage
1 26248711762.1 21 May 2026 07:37PM UTC 12
89.78
GitHub Action Run
Source Files on build 26248711762
  • Tree
  • List 12
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26248711762
  • 6bfd4e6e on github
  • Prev Build on main (#26220814217)
  • Next Build on main (#26313230125)
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