Class: Rubocop::Cop::SymbolSnakeCase
- Defined in:
- lib/rubocop/cop/symbol_snake_case.rb
Constant Summary collapse
- ERROR_MESSAGE =
'Use snake_case for symbols.'- SNAKE_CASE =
/^@?[\da-z_]+[!?=]?$/
Instance Attribute Summary
Attributes inherited from Cop
#correlations, #debug, #disabled_lines, #offences
Instance Method Summary collapse
Methods inherited from Cop
#add_offence, cop_name, #has_report?, inherited, #initialize, #name
Constructor Details
This class inherits a constructor from Rubocop::Cop::Cop
Instance Method Details
#inspect(file, source, tokens, sexp) ⇒ Object
8 9 10 11 |
# File 'lib/rubocop/cop/symbol_snake_case.rb', line 8 def inspect(file, source, tokens, sexp) check_for_symbols(sexp) check_for_hash_labels(sexp) end |