Sha256: ebf7bd5ec45427831a3e4941d63699d6593a5883dfe880836f55ff00675051be
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Style # This cop checks for non-ascii (non-English) characters # in comments. class AsciiComments < Cop MSG = 'Use only ascii symbols in comments.' def investigate(processed_source) processed_source.comments.each do |comment| convention(comment, :expression) if comment.text =~ /[^\x00-\x7f]/ end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.13.0 | lib/rubocop/cop/style/ascii_comments.rb |