Gem for shared html linting for BrandsInsurance.
Installation
Add this line to your application’s Gemfile:
gem 'rubomatic-html', require: false
And then execute:
$ bundle install
Or install it yourself as:
$ gem install rubomatic-html
Usage
Run the following command, from your project root
rubomatic-html
Or
bundle exec rubomatic-html
To ignore specific files, create .rubomatic-html.yml
AllCops:
Enabled: true
Exclude:
- app/views/layouts/partials/_dropzone_preview_template.html.erb
- app/views/shared/_global_email.html.erb
- app/views/shared/_global_email_text.text.erb
Layout/LineLength:
Enabled: true
Layout/MultipleLineBreaks:
Enabled: true
Layout/TrailingWhitespace:
Enabled: true
Style/PartialInstanceVariable:
Enabled: true
Changelog
See CHANGELOG see see changes