Class: SlimLint::Linter::RuboCop
- Inherits:
-
Linter
- Object
- Linter
- SlimLint::Linter::RuboCop
- Includes:
- SlimLint::LinterRegistry
- Defined in:
- lib/slim_lint/linter/rubocop.rb
Overview
Runs RuboCop on Ruby code extracted from Slim templates.
Instance Method Summary collapse
-
#initialize(config) ⇒ RuboCop
constructor
Initializes a RuboCop linter with the specified configuration.
Methods included from SlimLint::LinterRegistry
extract_linters_from, included, linter_names
Constructor Details
#initialize(config) ⇒ RuboCop
Initializes a RuboCop linter with the specified configuration.
17 18 19 20 |
# File 'lib/slim_lint/linter/rubocop.rb', line 17 def initialize(config) super(config) @rubocop = ::RuboCop::CLI.new end |