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

bombsimon / wsl / 24284976958
95%

Build:
DEFAULT BRANCH: main
Ran 11 Apr 2026 02:54PM UTC
Jobs 1
Files 4
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

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

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>

104 of 107 new or added lines in 4 files covered. (97.2%)

2 existing lines in 1 file now uncovered.

1378 of 1463 relevant lines covered (94.19%)

321.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
96.67
-3.33% cursor.go
1
95.74
-0.0% wsl.go

Coverage Regressions

Lines Coverage ∆ File
2
95.74
-0.0% wsl.go
Jobs
ID Job ID Ran Files Coverage
1 24284976958.1 11 Apr 2026 02:54PM UTC 4
94.19
GitHub Action Run
Source Files on build 24284976958
  • Tree
  • List 4
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24284976958
  • 956cbe9e on github
  • Prev Build on main (#24231338769)
  • Next Build on main (#24286244547)
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