class Rubocop::Cop::Style::BlockComments
This cop looks for uses of block comments (=begin…=end).
Constants
- MSG
Public Instance Methods
inspect(source_buffer, source, tokens, ast, comments)
click to toggle source
# File lib/rubocop/cop/style/block_comments.rb, line 10 def inspect(source_buffer, source, tokens, ast, comments) comments.each do |comment| if comment.text.start_with?('=begin') add_offence(:convention, comment.loc, MSG) end end end