Sha256: 13904d50e5868d0d67e229a37fd7fc0a5abbdf55339ad6bc8dcd68164ff3c081
Contents?: true
Size: 483 Bytes
Versions: 5
Compression:
Stored size: 483 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Style # This cop checks for non-ascii characters in indentifier names. class AsciiIdentifiers < Cop MSG = 'Use only ascii symbols in identifiers.' def investigate(processed_source) processed_source.tokens.each do |t| if t.type == :tIDENTIFIER && !t.text.ascii_only? add_offense(nil, t.pos) end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems