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

sds / haml-lint / 438 / 4
100%
main: 97%

Build:
Build:
LAST BUILD BRANCH: dependabot/bundler/rubocop-1.84.1
DEFAULT BRANCH: main
Ran 11 May 2017 11:52AM UTC
Files 78
Run time 4s
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

11 May 2017 11:50AM UTC coverage: 99.574%. First build
2.1, gemfiles/haml5.gemfile

push

travis-ci

trotzig
Fix finding attributes when assigned dynamically

In haml, you can assign attributes dynamically this way:

  %foo{ foo_attributes }

where `foo_attributes` is a method identifier or a variable. With the
newly added InlineStyles linter (619d581), we exposed a dormant bug with
how we look for attributes in a node in tag_node.rb. The following error
would be thrown when trying to lint the above code:

  undefined method `children' for false:HamlLint::ParsedRuby

I applied a somewhat naive fix by just returning early if `children`
isn't there.

Fixes #232

1638 of 1645 relevant lines covered (99.57%)

110.61 hits per line

Source Files on job 438.4 (2.1, gemfiles/haml5.gemfile)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 438
  • Travis Job 438.4
  • 60293317 on github
  • Next Job for 2.1, gemfiles/haml5.gemfile on fix-232 (#440.4)
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