Skip to content

Commit a413fe6

Browse files
committed
Suppress new RuboCop offenses
This commit suppresses the following new RuboCop offenses: ```console Offenses: lib/rubocop/cop/rails/squished_sql_heredocs.rb:71:49: W: [Correctable] Lint/SafeNavigationConsistency: Use . instead of unnecessary &.. node.parent&.send_type? && node.parent&.method?(:squish) ^^ lib/rubocop/cop/rails/where_range.rb:92:43: W: [Correctable] Lint/SafeNavigationConsistency: Use . instead of unnecessary &.. receiver&.send_type? && receiver&.method?(:where) ^^ 296 files inspected, 2 offenses detected, 2 offenses autocorrectable ```
1 parent 209cc09 commit a413fe6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rubocop/cop/rails/squished_sql_heredocs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def sql_heredoc?(node)
6868
end
6969

7070
def using_squish?(node)
71-
node.parent&.send_type? && node.parent&.method?(:squish)
71+
node.parent&.send_type? && node.parent.method?(:squish)
7272
end
7373

7474
def singleline_comments_present?(node)

lib/rubocop/cop/rails/where_range.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def on_send(node)
8989

9090
def where_not?(node)
9191
receiver = node.receiver
92-
receiver&.send_type? && receiver&.method?(:where)
92+
receiver&.send_type? && receiver.method?(:where)
9393
end
9494

9595
# rubocop:disable Metrics

0 commit comments

Comments
 (0)