Skip to content

Commit

Permalink
Configure additional style rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 authored Dec 22, 2023
1 parent 71b08b8 commit a3c5ab3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@ Style/DateTime:
Style/Documentation:
Enabled: false

# Checks for the formatting of empty method definitions.
Style/EmptyMethod:
EnforcedStyle: expanded

# Checks hash literal syntax.
Style/HashSyntax:
EnforcedShorthandSyntax: never

# Checks for methods called on a `do`...`​end` block.
Style/MethodCalledOnDoEndBlock:
Enabled: true
Expand All @@ -185,10 +193,6 @@ Style/MultilineMethodSignature:
Style/OptionHash:
Enabled: true

# Sort `require` and `require_relative` in alphabetical order.
Style/RequireOrder:
Enabled: true

# Enforces consistency between `return nil` and `return`.
Style/ReturnNil:
Enabled: true
Expand Down

0 comments on commit a3c5ab3

Please sign in to comment.