Skip to content

Commit

Permalink
Enable Lint/SafeNavigationChain cop
Browse files Browse the repository at this point in the history
This commit enables `Lint/SafeNavigationChain` cop
Refer to rails/rails#50655
  • Loading branch information
yahonda committed Sep 23, 2024
1 parent 64fe24d commit 4ec3161
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ Layout/EmptyLinesAroundMethodBody:
Layout/EmptyLinesAroundModuleBody:
Enabled: true

Lint/SafeNavigationChain:
Enabled: true

# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
Style/HashSyntax:
Enabled: true
Expand Down

0 comments on commit 4ec3161

Please sign in to comment.