Skip to content

Commit 6c598e7

Browse files
authored
Merge pull request rsim#2401 from yahonda/enable_safe_navigation_chain_cop
Enable `Lint/SafeNavigationChain` cop
2 parents 0ba9b60 + 4ec3161 commit 6c598e7

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
@@ -74,6 +74,9 @@ Layout/EmptyLinesAroundMethodBody:
7474
Layout/EmptyLinesAroundModuleBody:
7575
Enabled: true
7676

77+
Lint/SafeNavigationChain:
78+
Enabled: true
79+
7780
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
7881
Style/HashSyntax:
7982
Enabled: true

0 commit comments

Comments
 (0)