-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- General bundle update. - Update the docs too. - Add standard gem. Note this limits the rubocop-performance version. Fixes #351.
- Loading branch information
1 parent
975a1bd
commit 95784bc
Showing
25 changed files
with
441 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,36 @@ | ||
Checks for a line break before the first element in a | ||
multi-line array. | ||
|
||
### Example: AllowMultilineFinalElement: false (default) | ||
|
||
# bad | ||
[ :a, | ||
:b] | ||
|
||
# bad | ||
[ :a, { | ||
:b => :c | ||
}] | ||
### Example: | ||
|
||
# good | ||
[:a, :b] | ||
# bad | ||
[ :a, | ||
:b] | ||
|
||
# good | ||
[ | ||
:a, | ||
:b] | ||
# good | ||
[ | ||
:a, | ||
:b] | ||
|
||
# good | ||
[ | ||
:a, { | ||
:b => :c | ||
}] | ||
# good | ||
[:a, :b] | ||
|
||
### Example: AllowMultilineFinalElement: true | ||
### Example: AllowMultilineFinalElement: false (default) | ||
|
||
# bad | ||
[ :a, | ||
:b] | ||
# bad | ||
[ :a, { | ||
:b => :c | ||
}] | ||
|
||
# good | ||
[ :a, { | ||
:b => :c | ||
}] | ||
# good | ||
[ | ||
:a, { | ||
:b => :c | ||
}] | ||
|
||
# good | ||
[ | ||
:a, | ||
:b] | ||
### Example: AllowMultilineFinalElement: true | ||
|
||
# good | ||
[:a, :b] | ||
# good | ||
[:a, { | ||
:b => :c | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 44 additions & 55 deletions
99
config/contents/layout/first_method_argument_line_break.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,59 @@ | ||
Checks for a line break before the first argument in a | ||
multi-line method call. | ||
|
||
### Example: AllowMultilineFinalElement: false (default) | ||
### Example: | ||
|
||
# bad | ||
method(foo, bar, | ||
baz) | ||
# bad | ||
method(foo, bar, | ||
baz) | ||
|
||
# bad | ||
method(foo, bar, { | ||
baz: "a", | ||
qux: "b", | ||
}) | ||
|
||
# good | ||
method( | ||
foo, bar, | ||
baz) | ||
|
||
# good | ||
method( | ||
foo, bar, { | ||
baz: "a", | ||
qux: "b", | ||
}) | ||
# good | ||
method( | ||
foo, bar, | ||
baz) | ||
|
||
# ignored | ||
method foo, bar, | ||
baz | ||
|
||
### Example: AllowMultilineFinalElement: true | ||
### Example: AllowMultilineFinalElement: false (default) | ||
|
||
# bad | ||
method(foo, bar, | ||
baz) | ||
# bad | ||
method(foo, bar, { | ||
baz: "a", | ||
qux: "b", | ||
}) | ||
|
||
# bad | ||
method(foo, | ||
bar, | ||
{ | ||
baz: "a", | ||
qux: "b", | ||
} | ||
) | ||
# good | ||
method( | ||
foo, bar, { | ||
baz: "a", | ||
qux: "b", | ||
}) | ||
|
||
# good | ||
method(foo, bar, { | ||
### Example: AllowMultilineFinalElement: true | ||
|
||
# bad | ||
method(foo, | ||
bar, | ||
{ | ||
baz: "a", | ||
qux: "b", | ||
}) | ||
|
||
# good | ||
method( | ||
foo, bar, | ||
baz) | ||
|
||
# good | ||
method( | ||
foo, | ||
bar, | ||
{ | ||
baz: "a", | ||
qux: "b", | ||
} | ||
) | ||
|
||
# ignored | ||
method foo, bar, | ||
baz | ||
} | ||
) | ||
|
||
# good | ||
method(foo, bar, { | ||
baz: "a", | ||
qux: "b", | ||
}) | ||
|
||
# good | ||
method( | ||
foo, | ||
bar, | ||
{ | ||
baz: "a", | ||
qux: "b", | ||
} | ||
) |
Oops, something went wrong.