Class: RuboCop::Cop::YARD::TagTypePosition
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::YARD::TagTypePosition
- Includes:
- RangeHelp, Helper
- Defined in:
- lib/rubocop/cop/yard/tag_type_position.rb
Instance Method Summary collapse
Methods included from Helper
#build_docstring, #each_types_explainer, #extract_tag_types, #inline_comment?, #parse_type, #styled_string
Instance Method Details
#on_new_investigation ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/rubocop/cop/yard/tag_type_position.rb', line 10 def on_new_investigation processed_source.comments.each do |comment| next if inline_comment?(comment) next unless include_yard_tag?(comment) next unless include_yard_tag_type?(comment) check(comment) end end |