Skip to content

Commit

Permalink
Set Layout/DotPosition to the preferred leading
Browse files Browse the repository at this point in the history
fixes #36
  • Loading branch information
ribose-jeffreylau committed Nov 15, 2023
1 parent af460e8 commit 63e36a5
Show file tree
Hide file tree
Showing 3 changed files with 4 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: trailing
EnforcedStyle: leading
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: trailing
EnforcedStyle: leading
Layout/ExtraSpacing:
Description: Do not use unnecessary spacing.
Enabled: true
Expand Down
4 changes: 2 additions & 2 deletions src/rubocop/rubocop.ribose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ Style/TrailingCommaInArguments:

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

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

0 comments on commit 63e36a5

Please sign in to comment.