Parent

Methods

Files

Class/Module Index [+]

Quicksearch

RuboCop::Cop::Style::AsciiIdentifiers

This cop checks for non-ascii characters in indentifier names.

Constants

MSG

Public Instance Methods

investigate(processed_source) click to toggle source
# File lib/rubocop/cop/style/ascii_identifiers.rb, line 9
def investigate(processed_source)
  processed_source.tokens.each do |t|
    next unless t.type == :tIDENTIFIER && !t.text.ascii_only?
    add_offense(nil, t.pos)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.