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

sds / haml-lint / 27999763738
97%

Build:
DEFAULT BRANCH: main
Ran 23 Jun 2026 03:19AM UTC
Jobs 48
Files 101
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

23 Jun 2026 03:18AM UTC coverage: 97.378% (+0.1%) from 97.233%
27999763738

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)

265 of 267 new or added lines in 18 files covered. (99.25%)

3008 of 3089 relevant lines covered (97.38%)

30814.42 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
97.62
-2.38% lib/haml_lint/linter/space_before_script.rb
1
96.97
-3.03% lib/haml_lint/linter/space_inside_hash_attributes.rb
Jobs
ID Job ID Ran Files Coverage
1 ruby3.4-haml5.0-ubuntu - 27999763738.1 23 Jun 2026 03:19AM UTC 202
96.99
GitHub Action Run
2 ruby3.3-haml6.0-ubuntu - 27999763738.2 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
3 ruby3.2-haml6.2-ubuntu - 27999763738.3 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
4 ruby3.2-haml6.0-ubuntu - 27999763738.4 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
5 ruby3.2-haml7.1-ubuntu - 27999763738.5 23 Jun 2026 03:19AM UTC 202
97.02
GitHub Action Run
6 ruby3.4-haml5.1-ubuntu - 27999763738.6 23 Jun 2026 03:19AM UTC 202
96.99
GitHub Action Run
7 ruby4.0-haml7.1-ubuntu - 27999763738.7 23 Jun 2026 03:19AM UTC 202
97.02
GitHub Action Run
8 ruby3.3-haml7.1-ubuntu - 27999763738.8 23 Jun 2026 03:20AM UTC 202
97.02
GitHub Action Run
9 ruby3.4-haml5.2-ubuntu - 27999763738.9 23 Jun 2026 03:19AM UTC 202
96.73
GitHub Action Run
10 ruby3.3-haml5.2-ubuntu - 27999763738.10 23 Jun 2026 03:19AM UTC 202
96.73
GitHub Action Run
11 ruby3.3-haml6.4-ubuntu - 27999763738.11 23 Jun 2026 03:20AM UTC 202
96.98
GitHub Action Run
12 ruby3.4-haml6.2-ubuntu - 27999763738.12 23 Jun 2026 03:20AM UTC 202
96.99
GitHub Action Run
13 ruby3.4-haml7.2-ubuntu - 27999763738.13 23 Jun 2026 03:20AM UTC 202
97.02
GitHub Action Run
14 ruby3.2-haml6.1-ubuntu - 27999763738.14 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
15 ruby3.3-haml6.3-ubuntu - 27999763738.15 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
16 ruby3.2-haml6.3-ubuntu - 27999763738.16 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
17 ruby3.4-rubocop1.0-ubuntu - 27999763738.17 23 Jun 2026 03:19AM UTC 202
96.99
GitHub Action Run
18 ruby3.3-haml5.0-ubuntu - 27999763738.18 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
19 ruby3.2-haml5.0-ubuntu - 27999763738.19 23 Jun 2026 03:20AM UTC 202
96.98
GitHub Action Run
20 ruby4.0-haml6.0-ubuntu - 27999763738.20 23 Jun 2026 03:19AM UTC 202
96.99
GitHub Action Run
21 ruby4.0-haml6.4-ubuntu - 27999763738.21 23 Jun 2026 03:19AM UTC 202
96.99
GitHub Action Run
22 ruby4.0-haml6.1-ubuntu - 27999763738.22 23 Jun 2026 03:19AM UTC 202
96.99
GitHub Action Run
23 ruby3.4-haml6.1-ubuntu - 27999763738.23 23 Jun 2026 03:19AM UTC 202
96.99
GitHub Action Run
24 ruby3.2-haml5.2-ubuntu - 27999763738.24 23 Jun 2026 03:19AM UTC 202
96.73
GitHub Action Run
25 ruby3.3-rubocop1.0-ubuntu - 27999763738.25 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
26 ruby3.4-haml7.1-ubuntu - 27999763738.26 23 Jun 2026 03:20AM UTC 202
97.02
GitHub Action Run
27 ruby3.2-haml7.2-ubuntu - 27999763738.27 23 Jun 2026 03:19AM UTC 202
97.02
GitHub Action Run
28 ruby4.0-haml7.2-ubuntu - 27999763738.28 23 Jun 2026 03:19AM UTC 202
97.02
GitHub Action Run
29 ruby3.2-haml5.1-ubuntu - 27999763738.29 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
30 ruby3.4-haml7.0-ubuntu - 27999763738.30 23 Jun 2026 03:20AM UTC 202
97.02
GitHub Action Run
31 ruby4.0-haml5.2-ubuntu - 27999763738.31 23 Jun 2026 03:19AM UTC 202
96.73
GitHub Action Run
32 ruby3.3-haml7.2-ubuntu - 27999763738.32 23 Jun 2026 03:19AM UTC 202
97.02
GitHub Action Run
33 ruby4.0-haml7.0-ubuntu - 27999763738.33 23 Jun 2026 03:20AM UTC 202
97.02
GitHub Action Run
34 ruby3.2-rubocop1.0-ubuntu - 27999763738.34 23 Jun 2026 03:20AM UTC 202
96.98
GitHub Action Run
35 ruby3.3-haml6.1-ubuntu - 27999763738.35 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
36 ruby4.0-haml6.2-ubuntu - 27999763738.36 23 Jun 2026 03:20AM UTC 202
96.99
GitHub Action Run
37 ruby3.3-haml5.1-ubuntu - 27999763738.37 23 Jun 2026 03:20AM UTC 202
96.98
GitHub Action Run
38 ruby4.0-haml6.3-ubuntu - 27999763738.38 23 Jun 2026 03:20AM UTC 202
96.99
GitHub Action Run
39 ruby3.4-haml6.0-ubuntu - 27999763738.39 23 Jun 2026 03:19AM UTC 202
96.99
GitHub Action Run
40 ruby3.3-haml6.2-ubuntu - 27999763738.40 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
41 ruby4.0-rubocop1.0-ubuntu - 27999763738.41 23 Jun 2026 03:20AM UTC 202
96.99
GitHub Action Run
42 ruby3.4-haml6.4-ubuntu - 27999763738.42 23 Jun 2026 03:20AM UTC 202
96.99
GitHub Action Run
43 ruby3.2-haml6.4-ubuntu - 27999763738.43 23 Jun 2026 03:19AM UTC 202
96.98
GitHub Action Run
44 ruby3.2-haml7.0-ubuntu - 27999763738.44 23 Jun 2026 03:19AM UTC 202
97.02
GitHub Action Run
45 ruby4.0-haml5.0-ubuntu - 27999763738.45 23 Jun 2026 03:19AM UTC 202
96.99
GitHub Action Run
46 ruby4.0-haml5.1-ubuntu - 27999763738.46 23 Jun 2026 03:19AM UTC 202
96.99
GitHub Action Run
47 ruby3.4-haml6.3-ubuntu - 27999763738.47 23 Jun 2026 03:19AM UTC 202
96.99
GitHub Action Run
48 ruby3.3-haml7.0-ubuntu - 27999763738.48 23 Jun 2026 03:19AM UTC 202
97.02
GitHub Action Run
Source Files on build 27999763738
  • Tree
  • List 101
  • Changed 100
  • Source Changed 18
  • Coverage Changed 100
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27999763738
  • 6262ab74 on github
  • Prev Build on main (#27999657314)
  • Next Build on main (#27999771930)
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