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

sds / haml-lint / 5339595941
97%

Build:
DEFAULT BRANCH: main
Ran 21 Jun 2023 10:38PM UTC
Jobs 35
Files 98
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

pending completion
5339595941

push

github

web-flow
Enable RuboCop auto-correction (#346)

* Fix displayed requirement for Ruby in README for 2.6+

* Changes to keep empty trailing lines in source_lines
This makes some function look more correct, because before, they assumed no trailing empty lines, which is not intuitive and feels weird in a context of autocorrection.

* Fix wrong handling of literal \n in extract_interpolated_values
Previous version would treat escaped \n as regular \n

* Fix a test that was kinda invalid haml
It's valid haml, but the generated Ruby would raise a SyntaxError

* Moving a test, will make next commit more readable

* Refactor HAML_LINT_RUBOCOP_CONF and config_file test
They only checked that RuboCop received a flag, the new tests actually checks that linting results change
Needed due to future changes for the new RuboCop Linter, which will set the config directly in RuboCop, not using a flag

* Make Haml::Error's wrapper include file name

* Add debug mode to display more info in errors

* Remove unused option in runner_spec
The runner is stubbed to forcefully return the specified files. Passing them as options (and only sometimes) is more confusing than anything else.

* Make Linter#run turn internal exceptions into lints
So HamlLint can keep working when it encouters an internal error
Also add Linter#run_or_raise for tests. Makes errors easier to investigate when testing by failing quickly.

* Add ERB pre-processing of config
Will be needed to better handle multiple RuboCop versions which add and rename cops

* Add basic autocorrect machinery

* Upgrade minimum Rubocop to 1.0
Also disable Style/StringConcatenation since it often generates code that doesn't feel better to me

* Add autocorrection for RuboCop

* Tests for the RuboCop autocorrect system

* Add appraisals for different Rubocop versions

* Fix autocorrection with config skip_frontmatter: true

* Add forced_rubocop_config to avoid some very weird resulting HAML
... (continued)

921 of 1000 new or added lines in 44 files covered. (92.1%)

2585 of 2672 relevant lines covered (96.74%)

36064.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby2.7-haml5.0-ubuntu - 5339595941.1 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
2 ruby3.2-haml6.1-ubuntu - 5339595941.2 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
3 ruby3.0-haml4-ubuntu - 5339595941.3 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
4 ruby3.0-haml5.1-ubuntu - 5339595941.4 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
5 ruby3.0-haml6.0-ubuntu - 5339595941.5 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
6 ruby2.6-haml6.1-ubuntu - 5339595941.6 21 Jun 2023 10:38PM UTC 0
95.97
GitHub Action Run
7 ruby2.7-haml6.0-ubuntu - 5339595941.7 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
8 ruby3.1-haml4-ubuntu - 5339595941.8 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
9 ruby2.6-haml5.0-ubuntu - 5339595941.9 21 Jun 2023 10:38PM UTC 0
95.67
GitHub Action Run
10 ruby2.7-haml6.1-ubuntu - 5339595941.10 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
11 ruby2.6-haml5.1-ubuntu - 5339595941.11 21 Jun 2023 10:38PM UTC 0
95.67
GitHub Action Run
12 ruby2.6-haml4-ubuntu - 5339595941.12 21 Jun 2023 10:38PM UTC 0
95.67
GitHub Action Run
13 ruby3.1-haml5.0-ubuntu - 5339595941.13 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
14 ruby3.0-haml5.2-ubuntu - 5339595941.14 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
15 ruby2.7-haml5.2-ubuntu - 5339595941.15 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
16 ruby3.1-haml5.1-ubuntu - 5339595941.16 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
17 ruby3.2-haml5.1-ubuntu - 5339595941.17 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
18 ruby3.2-haml6.0-ubuntu - 5339595941.18 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
19 ruby3.2-haml5.2-ubuntu - 5339595941.19 21 Jun 2023 10:39PM UTC 0
95.59
GitHub Action Run
20 ruby2.7-rubocop1.0-ubuntu - 5339595941.20 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
21 ruby3.0-rubocop1.0-ubuntu - 5339595941.21 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
22 ruby3.2-haml5.0-ubuntu - 5339595941.22 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
23 ruby3.1-rubocop1.0-ubuntu - 5339595941.23 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
24 ruby3.1-haml6.0-ubuntu - 5339595941.24 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
25 ruby3.1-haml5.2-ubuntu - 5339595941.25 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
26 ruby3.2-haml4-ubuntu - 5339595941.26 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
27 ruby3.0-haml5.0-ubuntu - 5339595941.27 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
28 ruby2.6-rubocop1.0-ubuntu - 5339595941.28 21 Jun 2023 10:38PM UTC 0
95.97
GitHub Action Run
29 ruby2.6-haml5.2-ubuntu - 5339595941.29 21 Jun 2023 10:38PM UTC 0
95.67
GitHub Action Run
30 ruby2.7-haml5.1-ubuntu - 5339595941.30 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
31 ruby2.7-haml4-ubuntu - 5339595941.31 21 Jun 2023 10:38PM UTC 0
95.59
GitHub Action Run
32 ruby2.6-haml6.0-ubuntu - 5339595941.32 21 Jun 2023 10:38PM UTC 0
95.97
GitHub Action Run
33 ruby3.2-rubocop1.0-ubuntu - 5339595941.33 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
34 ruby3.0-haml6.1-ubuntu - 5339595941.34 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
35 ruby3.1-haml6.1-ubuntu - 5339595941.35 21 Jun 2023 10:38PM UTC 0
95.89
GitHub Action Run
Source Files on build 5339595941
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #5339595941
  • eb7f8167 on github
  • Prev Build on main (#4814180067)
  • Next Build on main (#5339600231)
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