Class: SlimLint::Linter::RuboCop
- Inherits:
-
SlimLint::Linter
- Object
- SlimLint::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 Attribute Summary
Attributes inherited from SlimLint::Linter
Attributes included from SexpVisitor::DSL
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
Methods inherited from SlimLint::Linter
Methods included from SexpVisitor::DSL
#anything, #capture, #on, #on_start
Methods included from SexpVisitor
#captures, #on_start, #patterns, #traverse, #traverse_children, #trigger_pattern_callbacks
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 |