Sha256: acbca2112d23d02ff3c6ac4fcfc7698ed93ee6629649a30a9ed650e6a1786b40
Contents?: true
Size: 512 Bytes
Versions: 4
Compression:
Stored size: 512 Bytes
Contents
# encoding: utf-8 # rubocop:disable SymbolName 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? convention(nil, t.pos) end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems