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

sds / haml-lint / 32325806152
97%

Build:
DEFAULT BRANCH: main
Ran 20 Aug 2026 02:46AM UTC
Jobs 39
Files 102
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

20 Aug 2026 02:45AM UTC coverage: 97.495%. Remained the same
32325806152

push

github

web-flow
Add support for Haml 7.4 (#693)

## Summary

Haml 7.4 broke Haml-Lint for **any template containing interpolation**.

`Haml::Util#unescape_interpolation` dropped its `escape_html` parameter
in haml/haml#1217 ([`78ddd14`][sig]), released in 7.4.0 (7.3.1 still has
it). That commit moved escaping of interpolated tag text out of the
parse-time string literal and into `Haml::Escape`, so the parameter,
whose only job was to bake `Haml::Util.escape_html_safe(...)` into that
literal, was left without callers and removed with it. Haml-Lint monkey
patches that method in
`lib/haml_lint/extensions/haml_util_unescape_interpolation_tracking.rb`
to keep a map of interpolated string → original source, which the
RuboCop auto-correct round-trip depends on. The patch forwarded two
arguments unconditionally, so under 7.4 every parse blew up with:

```
ArgumentError: wrong number of arguments (given 2, expected 1)
# lib/haml_lint/extensions/haml_util_unescape_interpolation_tracking.rb:28
# lib/haml_lint/adapter/haml_6.rb:30:in 'HamlLint::Adapter::Haml6#parse'
# lib/haml_lint/document.rb:109:in 'HamlLint::Document#process_source'
```

Since #690 relaxed the `haml` constraint to have no upper bound, users
on `haml 7.4` hit this immediately.

## Fix

Forward the extra arguments as-is, so the patch works against both
signatures:

```ruby
def unescape_interpolation_with_original_tracking(str, *args)
  value = unescape_interpolation_without_original_tracking(str, *args)
```

Also adds a `haml7.4` appraisal and wires it into the CI matrix, so the
next signature change is caught by CI rather than by users.

## Notes

- Scoped to 7.4 only. Haml 7.3 support is already covered by #692, which
needs no code change (the signature only changed in 7.4.0). This PR will
conflict textually with #692 on `Appraisals`,
`.github/workflows/tests.yml` and `CHANGELOG.md`, all three are one-line
insertions at the same spot, resolved by keeping both entries in order.
- `gemfiles/haml7.4.gemfile` int... (continued)

2 of 2 new or added lines in 1 file covered. (100.0%)

3153 of 3234 relevant lines covered (97.5%)

25095.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby3.3-haml6.3-ubuntu - 32325806152.1 20 Aug 2026 02:46AM UTC 204
97.15
GitHub Action Run
2 ruby4.0-haml6.2-ubuntu - 32325806152.2 20 Aug 2026 02:46AM UTC 204
97.16
GitHub Action Run
3 ruby3.4-haml7.0-ubuntu - 32325806152.3 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
4 ruby4.0-haml7.1-ubuntu - 32325806152.4 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
5 ruby4.0-rubocop1.0-ubuntu - 32325806152.5 20 Aug 2026 02:47AM UTC 204
97.12
GitHub Action Run
6 ruby3.3-haml7.4-ubuntu - 32325806152.6 20 Aug 2026 02:47AM UTC 204
97.15
GitHub Action Run
7 ruby3.3-haml6.2-ubuntu - 32325806152.7 20 Aug 2026 02:46AM UTC 204
97.15
GitHub Action Run
8 ruby3.3-haml6.1-ubuntu - 32325806152.8 20 Aug 2026 02:47AM UTC 204
97.15
GitHub Action Run
9 ruby4.0-haml5.0-ubuntu - 32325806152.9 20 Aug 2026 02:46AM UTC 204
97.16
GitHub Action Run
10 ruby3.4-haml6.4-ubuntu - 32325806152.10 20 Aug 2026 02:46AM UTC 204
97.16
GitHub Action Run
11 ruby3.3-rubocop1.0-ubuntu - 32325806152.11 20 Aug 2026 02:47AM UTC 204
97.12
GitHub Action Run
12 ruby3.3-haml6.4-ubuntu - 32325806152.12 20 Aug 2026 02:47AM UTC 204
97.15
GitHub Action Run
13 ruby3.3-haml7.2-ubuntu - 32325806152.13 20 Aug 2026 02:46AM UTC 204
97.15
GitHub Action Run
14 ruby3.4-haml5.1-ubuntu - 32325806152.14 20 Aug 2026 02:46AM UTC 204
97.16
GitHub Action Run
15 ruby4.0-haml6.0-ubuntu - 32325806152.15 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
16 ruby4.0-haml6.3-ubuntu - 32325806152.16 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
17 ruby3.4-haml7.4-ubuntu - 32325806152.17 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
18 ruby4.0-haml6.1-ubuntu - 32325806152.18 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
19 ruby3.4-haml6.2-ubuntu - 32325806152.19 20 Aug 2026 02:46AM UTC 204
97.16
GitHub Action Run
20 ruby3.4-haml7.2-ubuntu - 32325806152.20 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
21 ruby3.3-haml5.1-ubuntu - 32325806152.21 20 Aug 2026 02:46AM UTC 204
97.15
GitHub Action Run
22 ruby4.0-haml6.4-ubuntu - 32325806152.22 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
23 ruby3.3-haml6.0-ubuntu - 32325806152.23 20 Aug 2026 02:47AM UTC 204
97.15
GitHub Action Run
24 ruby4.0-haml5.1-ubuntu - 32325806152.24 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
25 ruby4.0-haml5.2-ubuntu - 32325806152.25 20 Aug 2026 02:47AM UTC 204
96.91
GitHub Action Run
26 ruby4.0-haml7.4-ubuntu - 32325806152.26 20 Aug 2026 02:46AM UTC 204
97.16
GitHub Action Run
27 ruby3.4-haml6.1-ubuntu - 32325806152.27 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
28 ruby3.3-haml7.1-ubuntu - 32325806152.28 20 Aug 2026 02:46AM UTC 204
97.15
GitHub Action Run
29 ruby3.4-haml7.1-ubuntu - 32325806152.29 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
30 ruby3.3-haml5.0-ubuntu - 32325806152.30 20 Aug 2026 02:46AM UTC 204
97.15
GitHub Action Run
31 ruby3.4-haml6.3-ubuntu - 32325806152.31 20 Aug 2026 02:46AM UTC 204
97.16
GitHub Action Run
32 ruby3.4-haml5.0-ubuntu - 32325806152.32 20 Aug 2026 02:46AM UTC 204
97.16
GitHub Action Run
33 ruby4.0-haml7.0-ubuntu - 32325806152.33 20 Aug 2026 02:47AM UTC 204
97.16
GitHub Action Run
34 ruby3.4-haml6.0-ubuntu - 32325806152.34 20 Aug 2026 02:46AM UTC 204
97.16
GitHub Action Run
35 ruby3.3-haml7.0-ubuntu - 32325806152.35 20 Aug 2026 02:47AM UTC 204
97.15
GitHub Action Run
36 ruby3.4-rubocop1.0-ubuntu - 32325806152.36 20 Aug 2026 02:46AM UTC 204
97.12
GitHub Action Run
37 ruby3.3-haml5.2-ubuntu - 32325806152.37 20 Aug 2026 02:46AM UTC 204
96.9
GitHub Action Run
38 ruby3.4-haml5.2-ubuntu - 32325806152.38 20 Aug 2026 02:46AM UTC 204
96.91
GitHub Action Run
39 ruby4.0-haml7.2-ubuntu - 32325806152.39 20 Aug 2026 02:46AM UTC 204
97.16
GitHub Action Run
Source Files on build 32325806152
  • Tree
  • List 102
  • Changed 101
  • Source Changed 1
  • Coverage Changed 101
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32325806152
  • decd86c0 on github
  • Prev Build on main (#31213271355)
  • Next Build on main (#32326332035)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc