| OLD | NEW |
| 1 40 columns | | 1 40 columns | |
| 2 >>> many arguments | 2 >>> many arguments |
| 3 method(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, | 3 method(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, |
| 4 tenth, eleventh, twelfth); | 4 tenth, eleventh, twelfth); |
| 5 <<< | 5 <<< |
| 6 method( | 6 method( |
| 7 first, | 7 first, |
| 8 second, | 8 second, |
| 9 third, | 9 third, |
| 10 fourth, | 10 fourth, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 a, | 57 a, |
| 58 b, | 58 b, |
| 59 inner(veryLongArgument, | 59 inner(veryLongArgument, |
| 60 veryLongArgument), | 60 veryLongArgument), |
| 61 c); | 61 c); |
| 62 >>> do not force single-argument list to split if argument splits | 62 >>> do not force single-argument list to split if argument splits |
| 63 foo(inner(veryLongArgument, veryLongArgument)); | 63 foo(inner(veryLongArgument, veryLongArgument)); |
| 64 <<< | 64 <<< |
| 65 foo(inner(veryLongArgument, | 65 foo(inner(veryLongArgument, |
| 66 veryLongArgument)); | 66 veryLongArgument)); |
| 67 >>> do force named single-argument list to split if argument splits |
| 68 foo(named:inner(veryLongArgument, veryLongArgument)); |
| 69 <<< |
| 70 foo( |
| 71 named: inner(veryLongArgument, |
| 72 veryLongArgument)); |
| 67 >>> do not split empty argument list | 73 >>> do not split empty argument list |
| 68 foo___________________________________(); | 74 foo___________________________________(); |
| 69 <<< | 75 <<< |
| 70 foo___________________________________(); | 76 foo___________________________________(); |
| 71 >>> do split empty argument list if it contains a comment | 77 >>> do split empty argument list if it contains a comment |
| 72 foo___________________________________(/* */); | 78 foo___________________________________(/* */); |
| 73 <<< | 79 <<< |
| 74 foo___________________________________( | 80 foo___________________________________( |
| 75 /* */); | 81 /* */); |
| 76 >>> keep positional and named on first line | 82 >>> keep positional and named on first line |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 element, | 193 element, |
| 188 element | 194 element |
| 189 ], | 195 ], |
| 190 argument, | 196 argument, |
| 191 { | 197 { |
| 192 'key': value, | 198 'key': value, |
| 193 'other key': value, | 199 'other key': value, |
| 194 'third key': value | 200 'third key': value |
| 195 }, () { | 201 }, () { |
| 196 ; | 202 ; |
| 197 }); | 203 }); |
| 204 >>> trailing comma |
| 205 fn(argument,argument ,argument , ); |
| 206 <<< |
| 207 fn( |
| 208 argument, |
| 209 argument, |
| 210 argument, |
| 211 ); |
| 212 >>> trailing comma in named argument list |
| 213 fn(named: argument,another:argument, ); |
| 214 <<< |
| 215 fn( |
| 216 named: argument, |
| 217 another: argument, |
| 218 ); |
| OLD | NEW |