Slimcop
RuboCop runner for Slim template.
Installation
Add this line to your application's Gemfile:
gem 'slimcop'
And then execute:
bundle install
Or install it yourself as:
gem install slimcop
Usage
Use slimcop executable to check offenses and auto-correct them.
$ slimcop --help
Usage: slimcop [options] [file1, file2, ...]
-a, --auto-correct Auto-correct offenses.
--[no-]color Force color output on or off.
Example
$ slimcop spec/**/*.slim
Offenses:
spec/fixtures/dummy.slim:1:3 C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
spec/fixtures/dummy.slim:3:5 C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.