Skip to content

Commit

Permalink
chore: Add redundant conditional linting rule to rubocop (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Inksprout authored May 17, 2023
1 parent b890685 commit b5d1c93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Lint/AssignmentInCondition:
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
Enabled: true

Lint/RedundantConditional:
Description: "Don't use redundant conditionals"
Enabled: true

Layout/BlockAlignment:
Description: 'Align block ends correctly.'
Enabled: true
Expand Down

0 comments on commit b5d1c93

Please sign in to comment.