Sha256: 24ebcaf25a5a55ba251079c1b560ed517cb3b1d94bf549328d324a005833b343
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop class AsciiComments < Cop MSG = 'Use only ascii symbols in comments.' def inspect(source, tokens, ast, comments) comments.each do |comment| if comment.text =~ /[^\x00-\x7f]/ add_offence(:convention, comment.loc.line, MSG) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.8.3 | lib/rubocop/cop/ascii_comments.rb |
rubocop-0.8.2 | lib/rubocop/cop/ascii_comments.rb |