Class: RuboCop::Cop::Cobra::GemRequirement
- Inherits:
-
RuboCop::Cop::Cop
- Object
- RuboCop::Cop::Cop
- RuboCop::Cop::Cobra::GemRequirement
- Defined in:
- lib/rubocop/cop/cobra/gem_requirement.rb
Constant Summary collapse
- MSG =
"Component Gemfile dependencies must specify " \ "'require: nil'."
Instance Method Summary collapse
Instance Method Details
#investigate(processed_source) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/rubocop/cop/cobra/gem_requirement.rb', line 10 def investigate(processed_source) return if processed_source.blank? gem_block = component_gem_block(processed_source.ast)&.first return unless gem_block process_component_declarations(gem_block) end |