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
Standard RubyProvides an opinionated, unconfigurable ruleset
HAML-LintRuby-based linter for HAML templates
Slim-LintConfigurable tool for analyzing Slim templates
ERB LintLint your ERB or HTML files
YARD-LintFor Ruby and Ruby on Rails projects that lint YARD documentation
oxicopFast Ruby linter

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted