HAML-Lint – Ruby-based linter for HAML templates

HAML-Lint is a Ruby-based linter for HAML templates. It’s designed to keep HAML files clean, readable, and stylistically consistent, and works with Ruby 3+ and HAML 5+. Packaged as a gem, it gives developers an opinionated way to enforce standards across HAML codebases and improve template quality during development.

This is free and open source software.

Key Features

  • Combines HAML-specific lint checks with RuboCop analysis for embedded Ruby.
  • Scans directories recursively or accepts explicit file lists from the command line.
  • Offers safe and unsafe auto-correction modes for supported lint issues.
  • Supports project configuration with .haml-lint.yml, including inherited configuration files.
  • Lets developers define and enable custom linters.
  • Integrates with Git workflows through hook management and can also be run from Rake tasks.
  • Provides editor integration options for tools such as Vim, Neovim, Visual Studio Code, Sublime Text, Atom, TextMate 2, and RubyMine.

Website: github.com/sds/haml-lint
Support:
Developer: Shane da Silva
License: MIT License

HAML-Lint is written in Ruby. Learn Ruby with our recommended free books and free tutorials.


Related Software

Ruby Linters
RuboCopRuby static code analyzer and formatter
ReekExamines Ruby classes, modules, and methods
BrakemanStatic analysis tool
ERB LintLint your ERB or HTML files

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments