Module: RuboCop::Cop::RSpec::Variable
- Extended by:
- NodePattern::Macros
- Included in:
- MultipleMemoizedHelpers, VariableDefinition, VariableName
- Defined in:
- lib/rubocop/cop/rspec/mixin/variable.rb
Overview
Helps check offenses with variable definitions
Constant Summary collapse
Instance Method Summary collapse
Instance Method Details
#variable_definition?(node) ⇒ Object
14 15 16 17 |
# File 'lib/rubocop/cop/rspec/mixin/variable.rb', line 14 def_node_matcher :variable_definition?, <<~PATTERN (send nil? {#Subjects.all #Helpers.all} $({sym str dsym dstr} ...) ...) PATTERN |