Skip to content

yatmsu/guard-haml-lint

Repository files navigation

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.