Skip to content

Commit

Permalink
Merge pull request #577 from Shopify/disallow-endless-methods
Browse files Browse the repository at this point in the history
disallow endless methods
  • Loading branch information
elfassy committed Nov 3, 2023
2 parents 445f1f4 + dc43308 commit bdb3e6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ Style/Encoding:
Enabled: false

Style/EndlessMethod:
Enabled: false
Enabled: true

Style/EnvHome:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/full_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2767,7 +2767,7 @@ Style/EndBlock:
Style/EndlessMethod:
Description: Avoid the use of multi-lined endless method definitions.
StyleGuide: "#endless-methods"
Enabled: false
Enabled: true
VersionAdded: '1.8'
EnforcedStyle: allow_single_line
SupportedStyles:
Expand Down

0 comments on commit bdb3e6b

Please sign in to comment.