Parent

Methods

Files

Class/Module Index [+]

Quicksearch

RuboCop::Cop::Style::AsciiComments

This cop checks for non-ascii (non-English) characters in comments.

Constants

MSG

Public Instance Methods

investigate(processed_source) click to toggle source
# File lib/rubocop/cop/style/ascii_comments.rb, line 10
def investigate(processed_source)
  processed_source.comments.each do |comment|
    add_offense(comment, :expression) unless comment.text.ascii_only?
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.