From 92176d60c50b5cb13d8ebc0c0122ef247ac5f57c Mon Sep 17 00:00:00 2001 From: Josh Cheek Date: Thu, 7 Feb 2019 15:39:23 -0600 Subject: [PATCH] Change Layout/DotPosition from trailing to leading Closes #75 --- README.md | 4 ++-- config/base.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 28abd296..9df2c970 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,8 @@ flag. `do`/`end` for procedural blocks that have side effects. More [here](http://www.virtuouscode.com/2011/07/26/the-procedurefunction-block-convention-in-ruby/) and [here](https://github.com/rubocop-hq/ruby-style-guide/issues/162) -- **Trailing dots on multi-line method chains** - chosen because it makes - copying lines into a REPL easier +- **Leading dots on multi-line method chains** - chosen for + [these](https://github.com/testdouble/standard/issues/75) reasons. - **And a good deal more** If you're familiar with [RuboCop](https://github.com/rubocop-hq/rubocop), you diff --git a/config/base.yml b/config/base.yml index 090c3f04..9ea294f8 100644 --- a/config/base.yml +++ b/config/base.yml @@ -58,7 +58,7 @@ Layout/DefEndAlignment: Layout/DotPosition: Enabled: true - EnforcedStyle: trailing + EnforcedStyle: leading Layout/ElseAlignment: Enabled: true