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

bombsimon / wsl / 24284976958 / 1
95%
main: 95%

Build:
DEFAULT BRANCH: main
Ran 11 Apr 2026 02:55PM UTC
Files 4
Run time 0s
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

11 Apr 2026 02:54PM UTC coverage: 94.19% (-0.08%) from 94.274%
24284976958.1

push

github

web-flow
feat: add cuddle-max-statements config (#245)

* feat: add cuddle-max-statements config

Allow configuring how many statements can be cuddled above block
statements (if, for, range, switch, select, send, go, defer), provided
each cuddled statement has at least one identifier used in the block.
Default is 1 (backward compatible), 0 means unlimited.

This has been requested multiple times over the years. The new
`cuddle-max-statements` config replaces the hardcoded limit of 1
while preserving all existing behavior at the default setting.

Also refactors: extract isAssignDeclOrIncDec, add Cursor.NthPrevious,
replace identIntersection with short-circuiting identsIntersect, build
target ident set once via cuddleTargetIdents, and clean up the
enforceLimit parameter to use bool instead of int sentinel.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Update docs for flag and README

* Fix panic, drop `groupedDecls`, add more tests

With the old `groupedDecls` we got overlapping reports resulting in
panic in some code bases (e.g. the `assignVarAssign` test case).

Never create overlapping diagnostics.

* Add more tests

* Add better error message

* Add non-block tests

* Add tests for first-in-block

* Use early return pattern

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

1378 of 1463 relevant lines covered (94.19%)

321.2 hits per line

Source Files on job 24284976958.1
  • Tree
  • List 4
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24284976958
  • 956cbe9e on github
  • Prev Job for on main (#24231338769.1)
  • Next Job for on main (#24286244547.1)
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