Sha256: 312515e6883af92066a8991a529850c293de50219b0d92e17cfda9c666f8e47e
Contents?: true
Size: 461 Bytes
Versions: 24
Compression:
Stored size: 461 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| add_offense(comment, :expression) unless comment.text.ascii_only? end end end end end end
Version data entries
24 entries across 24 versions & 2 rubygems