Parent

Methods

Files

Class/Module Index [+]

Quicksearch

RuboCop::Cop::Style::InlineComment

This cop checks for inline comments.

Constants

MSG

Public Instance Methods

investigate(processed_source) click to toggle source
# File lib/rubocop/cop/style/inline_comment.rb, line 9
def investigate(processed_source)
  processed_source.comments.each do |comment|
    next unless comment.inline?
    add_offense(comment, :expression)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.