Skip to content

Commit

Permalink
Set Layout/DotPosition enforced style to the preferred trailing
Browse files Browse the repository at this point in the history
  • Loading branch information
ribose-jeffreylau committed Nov 9, 2023
1 parent f5b401e commit 334a4b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ci/rubocop.rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ Layout/ConditionPosition:
Layout/DotPosition:
Description: Checks the position of the dot in multi-line method calls.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
EnforcedStyle: leading
EnforcedStyle: trailing
Layout/ExtraSpacing:
Description: Do not use unnecessary spacing.
Enabled: true
Expand Down
2 changes: 1 addition & 1 deletion ci/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ Layout/ConditionPosition:
Layout/DotPosition:
Description: Checks the position of the dot in multi-line method calls.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
EnforcedStyle: leading
EnforcedStyle: trailing
Layout/ExtraSpacing:
Description: Do not use unnecessary spacing.
Enabled: true
Expand Down
6 changes: 4 additions & 2 deletions src/rubocop/rubocop.ribose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ Style/CollectionMethods:
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma

# From 322cb2c179a721fed382a691124185a01811cf11
# Contrary to what hound apparently prefers
# (see 322cb2c179a721fed382a691124185a01811cf11),
# we prefer trailing dots.
Layout/DotPosition:
EnforcedStyle: leading
EnforcedStyle: trailing

# Delete following lines after migrating to Rubocop 2.x, as these checks
# will be enabled by default.
Expand Down

0 comments on commit 334a4b5

Please sign in to comment.