Module: RuboCop::Cop::ForbiddenIdentifiers
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
| Included In: | |
| Defined in: | lib/rubocop/cop/mixin/forbidden_identifiers.rb | 
Overview
This module encapsulates the ability to forbid certain identifiers in a cop.
Constant Summary
- 
    SIGILS =
    # File 'lib/rubocop/cop/mixin/forbidden_identifiers.rb', line 7if a variable starts with a sigil it will be removed '@$'
Instance Method Summary
Instance Method Details
    #forbidden_identifier?(name)  ⇒ Boolean 
  
# File 'lib/rubocop/cop/mixin/forbidden_identifiers.rb', line 9
def forbidden_identifier?(name) name = name.to_s.delete(SIGILS) forbidden_identifiers.any? && forbidden_identifiers.include?(name) end
#forbidden_identifiers
[ GitHub ]# File 'lib/rubocop/cop/mixin/forbidden_identifiers.rb', line 15
def forbidden_identifiers cop_config.fetch('ForbiddenIdentifiers', []) end