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

sds / haml-lint / 12604108854
97%

Build:
DEFAULT BRANCH: main
Ran 03 Jan 2025 09:22PM UTC
Jobs 32
Files 100
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

03 Jan 2025 09:22PM UTC coverage: 97.175%. Remained the same
12604108854

push

github

web-flow
Set `Layout/First_#{}_LineBreak` lints as disabled in rubocop config (#536)

**What**

Set 3 of the 4 `Layout/First_#{}_LineBreak` lints as `enabled: false` in
`config/forced_rubocop_config.yml`

- [Layout/FirstArrayElementLineBreak](https://docs.rubocop.org/rubocop/cops_layout.html#layoutfirstarrayelementlinebreak)
- [Layout/FirstHashElementLineBreak](https://docs.rubocop.org/rubocop/cops_layout.html#layoutfirsthashelementlinebreak)
- [Layout/FirstMethodArgumentLineBreak](https://docs.rubocop.org/rubocop/cops_layout.html#layoutfirstmethodargumentlinebreak)

Leaving 1 of the 4 as is:

- [Layout/FirstMethodParameterLineBreak](https://docs.rubocop.org/rubocop/cops_layout.html#layoutfirstmethodparameterlinebreak)

**Why**

These lints run into a conflict with
[MultilinePipe](https://github.com/sds/haml-lint/blob/main/lib/haml_lint/linter/README.md#multilinepipe)

One example of this is that the autocorrect changes:

```
= link_to('View button styleguide',
  style_path('button'),
  target: '_blank',
  rel: 'noopener noreferrer')
```

to:

```
= link_to( |
  'View button styleguide', |
  style_path('button'), |
  target: '_blank', |
  rel: 'noopener noreferrer', |
  ) |
```

It is quite possible that this is showcasing a lack of understanding I have of haml syntax/best
practice but I wasn't able to figure out a workaround that can satisfy both lints.

I left out
[Layout/FirstMethodParameterLineBreak](https://docs.rubocop.org/rubocop/cops_layout.html#layoutfirstmethodparameterlinebreak)
because in order to trigger this (which I couldn't figure out how to do without triggering a syntax
error) you are probably doing something you shouldn't in the first place (defining a method inside a
haml file is something that comes across to me as [bad
practice](https://stackoverflow.com/questions/52117429/haml-how-to-define-a-method)) and an
additional safeguard against this is probably a good thing.

2717 of 2796 relevant lines covered (97.17%)

21081.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby3.0-rubocop1.0-ubuntu - 12604108854.1 03 Jan 2025 09:22PM UTC 0
96.78
GitHub Action Run
2 ruby3.0-haml6.0-ubuntu - 12604108854.2 03 Jan 2025 09:22PM UTC 0
96.78
GitHub Action Run
3 ruby3.1-haml5.0-ubuntu - 12604108854.3 03 Jan 2025 09:22PM UTC 0
96.75
GitHub Action Run
4 ruby3.0-haml6.2-ubuntu - 12604108854.4 03 Jan 2025 09:22PM UTC 0
96.78
GitHub Action Run
5 ruby3.0-haml6.1-ubuntu - 12604108854.5 03 Jan 2025 09:22PM UTC 0
96.78
GitHub Action Run
6 ruby3.0-haml5.1-ubuntu - 12604108854.6 03 Jan 2025 09:22PM UTC 0
96.78
GitHub Action Run
7 ruby3.0-haml5.2-ubuntu - 12604108854.7 03 Jan 2025 09:22PM UTC 0
96.49
GitHub Action Run
8 ruby3.0-haml6.3-ubuntu - 12604108854.8 03 Jan 2025 09:22PM UTC 0
96.78
GitHub Action Run
9 ruby3.3-haml5.1-ubuntu - 12604108854.9 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
10 ruby3.1-haml5.1-ubuntu - 12604108854.10 03 Jan 2025 09:22PM UTC 0
96.75
GitHub Action Run
11 ruby3.2-haml6.3-ubuntu - 12604108854.11 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
12 ruby3.1-haml6.3-ubuntu - 12604108854.12 03 Jan 2025 09:22PM UTC 0
96.75
GitHub Action Run
13 ruby3.2-rubocop1.0-ubuntu - 12604108854.13 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
14 ruby3.2-haml5.1-ubuntu - 12604108854.14 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
15 ruby3.3-haml6.2-ubuntu - 12604108854.15 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
16 ruby3.2-haml5.2-ubuntu - 12604108854.16 03 Jan 2025 09:22PM UTC 0
96.46
GitHub Action Run
17 ruby3.3-haml6.3-ubuntu - 12604108854.17 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
18 ruby3.2-haml5.0-ubuntu - 12604108854.18 03 Jan 2025 09:22PM UTC 0
96.75
GitHub Action Run
19 ruby3.1-haml6.0-ubuntu - 12604108854.19 03 Jan 2025 09:22PM UTC 0
96.75
GitHub Action Run
20 ruby3.2-haml6.2-ubuntu - 12604108854.20 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
21 ruby3.1-rubocop1.0-ubuntu - 12604108854.21 03 Jan 2025 09:22PM UTC 0
96.75
GitHub Action Run
22 ruby3.1-haml5.2-ubuntu - 12604108854.22 03 Jan 2025 09:22PM UTC 0
96.46
GitHub Action Run
23 ruby3.2-haml6.1-ubuntu - 12604108854.23 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
24 ruby3.2-haml6.0-ubuntu - 12604108854.24 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
25 ruby3.3-haml5.2-ubuntu - 12604108854.25 03 Jan 2025 09:23PM UTC 0
96.46
GitHub Action Run
26 ruby3.3-rubocop1.0-ubuntu - 12604108854.26 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
27 ruby3.3-haml5.0-ubuntu - 12604108854.27 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
28 ruby3.3-haml6.0-ubuntu - 12604108854.28 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
29 ruby3.0-haml5.0-ubuntu - 12604108854.29 03 Jan 2025 09:22PM UTC 0
96.78
GitHub Action Run
30 ruby3.3-haml6.1-ubuntu - 12604108854.30 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
31 ruby3.1-haml6.1-ubuntu - 12604108854.31 03 Jan 2025 09:23PM UTC 0
96.75
GitHub Action Run
32 ruby3.1-haml6.2-ubuntu - 12604108854.32 03 Jan 2025 09:22PM UTC 0
96.75
GitHub Action Run
Source Files on build 12604108854
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #12604108854
  • 5e594e74 on github
  • Prev Build on main (#12604096635)
  • Next Build on main (#12646185417)
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