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

sds / haml-lint / 28000318654 / 35
97%
main: 97%

Build:
DEFAULT BRANCH: main
Ran 23 Jun 2026 03:37AM UTC
Files 202
Run time 8s
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

23 Jun 2026 03:34AM UTC coverage: 97.007% (+0.01%) from 96.997%
28000318654.35

push

github

web-flow
Fix false UselessAssignment for HTML-style (parens) attributes (#659)

HTML-style attributes like `%div(foo=foo)` are handed to the Ruby
extractor as a synthesized hash string (e.g. `{"foo" => foo,}`). Because
that text isn't present verbatim in the HAML, it can't be mapped back for
auto-correct, so the extractor was discarding it entirely. As a result,
variables used only inside parens attributes were invisible to RuboCop,
which reported a false `Lint/UselessAssignment` and, on auto-correct,
removed the assignment, breaking the rendered output.

Extract just the attribute value expressions and emit them as a
non-correctable chunk (`HL.out = <value>`) so RuboCop sees the variables
being used. Auto-correct of parens attributes remains intentionally
unsupported.

Fixes #648

Co-authored-by: Shane da Silva <shane@dasilva.io>

6028 of 6214 relevant lines covered (97.01%)

321.05 hits per line

Source Files on job ruby3.4-haml6.1-ubuntu - 28000318654.35
  • Tree
  • List 202
  • Changed 100
  • Source Changed 1
  • Coverage Changed 100
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 28000318654
  • e156f206 on github
  • Prev Job for on main (#28000218290.19)
  • Next Job for on main (#28000422921.18)
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