Sha256: 03cfddcc57f1f9430d14d20020bacdefe261897216e4a3a86c71779a18594fe8
Contents?: true
Size: 470 Bytes
Versions: 5
Compression:
Stored size: 470 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Style # This cop looks for uses of block comments (=begin...=end). class BlockComments < Cop MSG = 'Do not use block comments.' def investigate(processed_source) processed_source.comments.each do |comment| if comment.text.start_with?('=begin') convention(comment, :expression) end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems