0.0
Low commit activity in last 3 years
No release in over a year
Guard::HamlLint automatically runs Haml Lint tools.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 4.7.3
~> 12.3
~> 3.9.0

Runtime

~> 2.2
~> 0.35
 Project Readme

Gem Version Build Status Code Climate

Guard::HamlLint

A guard to lint your Haml.

Requirements

  • Ruby 2.5+
  • Haml-Lint 0.35.0+

Installation

Add this line to your application's Gemfile

gem 'guard-haml_lint'

Add the default guard-haml_lint definition to your Guardfile

$ guard init haml_lint

Add options in Guardfile

guard :haml_lint, cli: '--fail-fast' do
  watch(%r{.+\.html.*\.haml$})
  watch(%r{(?:.+/)?\.haml-lint\.yml$}) { |m| File.dirname(m[0]) }
end

Guardfile

Please read the Guardfile DSL documentation for additional information.

Available options:

all_on_start: true        # Check all files at Guard startup. default: true
haml_dires: ['app/views'] # Check Directories. default: 'app/views' or '.'
cli: '--fail-fast --no-color' # Additional command line options to haml-lint. default: nil

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yatmsu/guard-haml_lint.

License

guard-haml_lint is released under the MIT License.

Code of Conduct

Everyone interacting in the Guard::HamlLint project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.