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

sds / haml-lint / 27999763738 / 36
97%
main: 97%

Build:
DEFAULT BRANCH: main
Ran 23 Jun 2026 03:22AM UTC
Files 202
Run time 11s
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:18AM UTC coverage: 96.989% (+0.2%) from 96.813%
27999763738.36

push

github

web-flow
Add auto-correction to HAML-level linters (#649)

* Add autocorrect infrastructure to the Linter base

Add the building blocks that let HAML-level linters rewrite the source:
- autocorrect? gate, apply_autocorrect, autocorrected_lines/correct_line and an
  after_visit_root flush, all routing through Document#change_source.
- autocorrect_safe/autocorrect_safe? so unsafe corrections only run under -A.
- autocorrect_priority + Runner sorting so order-dependent fixes run in order.
- reset_autocorrect_state so reused linter instances don't leak corrections
  between files.

* Add autocorrect to ClassAttributeWithStaticValue

Rewrite a sole static \`class:\` hash entry to the `.class` shorthand,
guarding against multi-pair hashes, multiline sources and duplicate classes.

* Add autocorrect to ClassesBeforeIds

Reorder the .class/#id attribute components to the configured order.

* Add autocorrect to ConsecutiveComments

Merge consecutive `-#` comments into one block. Marked unsafe, so it only
runs under --auto-correct-all.

* Add autocorrect to EmptyObjectReference

Strip the empty `[]` object reference from the tag.

* Add autocorrect to EmptyScript

Delete childless empty - scripts, tracking deleted lines in per-run state
that is reset between files. Marked unsafe.

* Add autocorrect to FinalNewline

Normalize the single trailing newline. Runs last (autocorrect_priority 1)
so line-level fixes from other linters land before the newline is settled.

* Add autocorrect to ImplicitDiv

Drop the redundant %div before a .class/#id shorthand.

* Add autocorrect to LeadingCommentSpace

Insert the missing space after the `#` in comments.

* Add autocorrect to MultilineScript

Merge a trailing-operator script with the next sibling line, accumulating
merges in per-run state reset between files. Marked unsafe.

* Add autocorrect to RubyComments

Rewrite `- #` comments to `-#`.

* Add autocorrect to SpaceBeforeScript

Insert the missing space after =/- script markers (... (continued)

5992 of 6178 relevant lines covered (96.99%)

322.17 hits per line

Source Files on job ruby4.0-haml6.2-ubuntu - 27999763738.36
  • Tree
  • List 202
  • Changed 100
  • Source Changed 18
  • Coverage Changed 100
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 27999763738
  • 6262ab74 on github
  • Prev Job for on main (#27999657314.44)
  • Next Job for on main (#27999771930.16)
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