Class: RuboCop::Cop::EightyFourCodes::Cop Abstract
- Inherits:
-
WorkaroundCop84
- Object
- WorkaroundCop84
- RuboCop::Cop::EightyFourCodes::Cop
- Defined in:
- lib/rubocop/cop/eightyfourcodes/cop.rb
Overview
This class is abstract.
parent class to rspec cops
The criteria for whether rubocop-rspec analyzes a certain ruby file is configured via ‘AllCops/RSpec`. For example, if you want to customize your project to scan all files within a `test/` directory then you could add this to your configuration:
Constant Summary collapse
- DEFAULT_CONFIGURATION =
RuboCop::EightyFourCodes::CONFIG.fetch('AllCops').fetch('EightyFourCodes')
Constants included from EightyFourCodes::Language
EightyFourCodes::Language::ALL
Class Method Summary collapse
-
.inherited(subclass) ⇒ Object
Invoke the original inherited hook so our cops are recognized.
Instance Method Summary collapse
Class Method Details
Instance Method Details
#relevant_file?(file) ⇒ Boolean
47 48 49 |
# File 'lib/rubocop/cop/eightyfourcodes/cop.rb', line 47 def relevant_file?(file) relevant_rubocop_rspec_file?(file) && super end |