Skip to content

Commit

Permalink
Change Layout/DotPosition from trailing to leading
Browse files Browse the repository at this point in the history
Closes #75
  • Loading branch information
JoshCheek committed Feb 8, 2019
1 parent 14da557 commit 92176d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Layout/DefEndAlignment:

Layout/DotPosition:
Enabled: true
EnforcedStyle: trailing
EnforcedStyle: leading

Layout/ElseAlignment:
Enabled: true
Expand Down

0 comments on commit 92176d6

Please sign in to comment.