Skip to content

Commit 4ec3161

Browse files
committed
Enable Lint/SafeNavigationChain cop
This commit enables `Lint/SafeNavigationChain` cop Refer to rails/rails#50655
1 parent 64fe24d commit 4ec3161

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ Layout/EmptyLinesAroundMethodBody:
7171
Layout/EmptyLinesAroundModuleBody:
7272
Enabled: true
7373

74+
Lint/SafeNavigationChain:
75+
Enabled: true
76+
7477
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
7578
Style/HashSyntax:
7679
Enabled: true

0 commit comments

Comments
 (0)