Skip to content

Commit

Permalink
Merge pull request #2401 from yahonda/enable_safe_navigation_chain_cop
Browse files Browse the repository at this point in the history
Enable `Lint/SafeNavigationChain` cop
  • Loading branch information
yahonda committed Sep 24, 2024
2 parents 0ba9b60 + 4ec3161 commit 6c598e7
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 @@ -74,6 +74,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 6c598e7

Please sign in to comment.