@@ -32,9 +32,10 @@ This cop will respect `Layout/ArgumentAlignment` and will not work when
32
32
nested_first_param),
33
33
second_param
34
34
35
- ### Example: EnforcedStyle: consistent
36
- # The first argument should always be indented one step more than the
37
- # preceding line.
35
+ ### Example: EnforcedStyle: special_for_inner_method_call_in_parentheses (default)
36
+ # Same as `special_for_inner_method_call` except that the special rule
37
+ # only applies if the outer method call encloses its arguments in
38
+ # parentheses.
38
39
39
40
# good
40
41
some_method(
@@ -46,7 +47,7 @@ This cop will respect `Layout/ArgumentAlignment` and will not work when
46
47
second_param)
47
48
48
49
foo = some_method(nested_call(
49
- nested_first_param),
50
+ nested_first_param),
50
51
second_param)
51
52
52
53
foo = some_method(
@@ -58,64 +59,63 @@ This cop will respect `Layout/ArgumentAlignment` and will not work when
58
59
nested_first_param),
59
60
second_param
60
61
61
- ### Example: EnforcedStyle: consistent_relative_to_receiver
62
- # The first argument should always be indented one level relative to
63
- # the parent that is receiving the argument
62
+ ### Example: EnforcedStyle: consistent
63
+ # The first argument should always be indented one step more than the
64
+ # preceding line.
64
65
65
66
# good
66
67
some_method(
67
68
first_param,
68
69
second_param)
69
70
70
71
foo = some_method(
71
- first_param,
72
+ first_param,
72
73
second_param)
73
74
74
75
foo = some_method(nested_call(
75
- nested_first_param),
76
+ nested_first_param),
76
77
second_param)
77
78
78
79
foo = some_method(
79
- nested_call(
80
- nested_first_param),
80
+ nested_call(
81
+ nested_first_param),
81
82
second_param)
82
83
83
84
some_method nested_call(
84
- nested_first_param),
85
- second_params
85
+ nested_first_param),
86
+ second_param
86
87
87
- ### Example: EnforcedStyle: special_for_inner_method_call
88
- # The first argument should normally be indented one step more than
89
- # the preceding line, but if it's a argument for a method call that
90
- # is itself a argument in a method call, then the inner argument
91
- # should be indented relative to the inner method.
88
+ ### Example: EnforcedStyle: consistent_relative_to_receiver
89
+ # The first argument should always be indented one level relative to
90
+ # the parent that is receiving the argument
92
91
93
92
# good
94
93
some_method(
95
94
first_param,
96
95
second_param)
97
96
98
97
foo = some_method(
99
- first_param,
98
+ first_param,
100
99
second_param)
101
100
102
101
foo = some_method(nested_call(
103
102
nested_first_param),
104
103
second_param)
105
104
106
105
foo = some_method(
107
- nested_call(
108
- nested_first_param),
106
+ nested_call(
107
+ nested_first_param),
109
108
second_param)
110
109
111
110
some_method nested_call(
112
111
nested_first_param),
113
- second_param
112
+ second_params
114
113
115
- ### Example: EnforcedStyle: special_for_inner_method_call_in_parentheses (default)
116
- # Same as `special_for_inner_method_call` except that the special rule
117
- # only applies if the outer method call encloses its arguments in
118
- # parentheses.
114
+ ### Example: EnforcedStyle: special_for_inner_method_call
115
+ # The first argument should normally be indented one step more than
116
+ # the preceding line, but if it's a argument for a method call that
117
+ # is itself a argument in a method call, then the inner argument
118
+ # should be indented relative to the inner method.
119
119
120
120
# good
121
121
some_method(
@@ -136,5 +136,5 @@ This cop will respect `Layout/ArgumentAlignment` and will not work when
136
136
second_param)
137
137
138
138
some_method nested_call(
139
- nested_first_param),
139
+ nested_first_param),
140
140
second_param
0 commit comments