12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/rubocop/cop/style/comment_annotation.rb', line 12
def investigate(processed_source)
processed_source..each_with_index do |, index|
next unless (processed_source., index) ||
()
margin, first_word, colon, space, note = ()
next unless annotation?() &&
!correct_annotation?(first_word, colon, space, note)
length = concat_length(first_word, colon, space)
add_offense(
,
location: annotation_range(, margin, length),
message: format(message(note), keyword: first_word)
)
end
end
|