lib/rubocop/comment_config.rb in rubocop-1.12.1 vs lib/rubocop/comment_config.rb in rubocop-1.13.0
- old
+ new
@@ -23,19 +23,14 @@
def cop_disabled_line_ranges
@cop_disabled_line_ranges ||= analyze
end
def extra_enabled_comments
- extra_enabled_comments_with_names(
- extras: Hash.new { |h, k| h[k] = [] },
- names: Hash.new(0)
- )
+ extra_enabled_comments_with_names(extras: Hash.new { |h, k| h[k] = [] }, names: Hash.new(0))
end
def comment_only_line?(line_number)
- non_comment_token_line_numbers.none? do |non_comment_line_number|
- non_comment_line_number == line_number
- end
+ non_comment_token_line_numbers.none?(line_number)
end
private
def extra_enabled_comments_with_names(extras:, names:)