Skip to content

Commit

Permalink
Merge pull request #30 from ekohl/better-ternary
Browse files Browse the repository at this point in the history
Enforce require_parentheses_when_complex style for ternaries
  • Loading branch information
bastelfreak committed Jul 13, 2023
2 parents e16f386 + 2afe12e commit 103b6ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rubocop.yml
Expand Up @@ -23,6 +23,9 @@ Gemspec/RequireMFA:
Gemspec/DevelopmentDependencies:
Enabled: false

Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex

Style/TrailingCommaInHashLiteral:
Enabled: true
EnforcedStyleForMultiline: consistent_comma
Expand Down

0 comments on commit 103b6ef

Please sign in to comment.