From 63e36a5d79d22509a66eb98dc5a0cdf598a9606f Mon Sep 17 00:00:00 2001 From: Jeffrey Lau Date: Wed, 15 Nov 2023 17:14:49 +0800 Subject: [PATCH] Set Layout/DotPosition to the preferred `leading` fixes #36 --- ci/rubocop.rails.yml | 2 +- ci/rubocop.yml | 2 +- src/rubocop/rubocop.ribose.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/rubocop.rails.yml b/ci/rubocop.rails.yml index cd867e5..6e0c7f8 100644 --- a/ci/rubocop.rails.yml +++ b/ci/rubocop.rails.yml @@ -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 diff --git a/ci/rubocop.yml b/ci/rubocop.yml index 3145e9b..8994346 100644 --- a/ci/rubocop.yml +++ b/ci/rubocop.yml @@ -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 diff --git a/src/rubocop/rubocop.ribose.yml b/src/rubocop/rubocop.ribose.yml index e4f3805..e652289 100644 --- a/src/rubocop/rubocop.ribose.yml +++ b/src/rubocop/rubocop.ribose.yml @@ -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.