Module: RuboCop::RSpec::Language
- Extended by:
- NodePattern::Macros, NodePattern
- Included in:
- Cop::RSpec::Base, Cop::RSpec::ExplicitHelper, Cop::RSpec::InflectedHelper, AlignLetBrace, Concept
- Defined in:
- lib/rubocop/rspec/language.rb,
lib/rubocop/rspec/language/node_pattern.rb
Overview
Contains node matchers for common RSpec DSL.
RSpec allows for configuring aliases for commonly used DSL elements, e.g. example groups and hooks. It is possible to configure RuboCop RSpec to be able to properly detect these elements in the ‘RSpec/Language` section of the RuboCop YAML configuration file.
In addition to providing useful matchers, this class is responsible for using the configured aliases.
Defined Under Namespace
Modules: Helpers, HookScopes, NodePattern, Subjects
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Method Summary
Methods included from NodePattern
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
19 20 21 |
# File 'lib/rubocop/rspec/language.rb', line 19 def config @config end |