| OLD | NEW |
| 1 40 columns | | 1 40 columns | |
| 2 >>> many parameters | 2 >>> many parameters |
| 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 print('42'); | 5 print('42'); |
| 6 } | 6 } |
| 7 <<< | 7 <<< |
| 8 method( | 8 method( |
| 9 first, | 9 first, |
| 10 second, | 10 second, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool doStuff(parameter1, | 72 bool doStuff(parameter1, |
| 73 void printFn(param1, param2)) {} | 73 void printFn(param1, param2)) {} |
| 74 >>> | 74 >>> |
| 75 doStuff(param1, void printFn(param1, param2)) {} | 75 doStuff(param1, void printFn(param1, param2)) {} |
| 76 <<< | 76 <<< |
| 77 doStuff(param1, | 77 doStuff(param1, |
| 78 void printFn(param1, param2)) {} | 78 void printFn(param1, param2)) {} |
| 79 >>> allow splitting in function type parameters | 79 >>> allow splitting in function type parameters |
| 80 doStuff(callback(parameter1, parameter2, parameter3, parameter4)) {} | 80 doStuff(callback(parameter1, parameter2, parameter3, parameter4)) {} |
| 81 <<< | 81 <<< |
| 82 doStuff(callback(parameter1, parameter2, | 82 doStuff( |
| 83 parameter3, parameter4)) {} | 83 callback(parameter1, parameter2, |
| 84 parameter3, parameter4)) {} |
| 84 >>> split optional onto one per line if they don't fit on one line | 85 >>> split optional onto one per line if they don't fit on one line |
| 85 doStuff([parameter1, parameter2, parameter3]) {} | 86 doStuff([parameter1, parameter2, parameter3]) {} |
| 86 <<< | 87 <<< |
| 87 doStuff( | 88 doStuff( |
| 88 [parameter1, | 89 [parameter1, |
| 89 parameter2, | 90 parameter2, |
| 90 parameter3]) {} | 91 parameter3]) {} |
| 91 >>> split on positional default value | 92 >>> split on positional default value |
| 92 doStuff([parameter = veryLongDefaultValueThatSplits, another = | 93 doStuff([parameter = veryLongDefaultValueThatSplits, another = |
| 93 veryLongDefaultValue, third = alsoQuiteLongDefaultValue]) {} | 94 veryLongDefaultValue, third = alsoQuiteLongDefaultValue]) {} |
| 94 <<< | 95 <<< |
| 95 doStuff( | 96 doStuff( |
| 96 [parameter = | 97 [parameter = |
| 97 veryLongDefaultValueThatSplits, | 98 veryLongDefaultValueThatSplits, |
| 98 another = veryLongDefaultValue, | 99 another = veryLongDefaultValue, |
| 99 third = | 100 third = |
| 100 alsoQuiteLongDefaultValue]) {} | 101 alsoQuiteLongDefaultValue]) {} |
| 101 >>> split on named value | 102 >>> split on named value |
| 102 doStuff({parameter: veryLongDefaultValueThatSplits, another: | 103 doStuff({parameter: veryLongDefaultValueThatSplits, another: |
| 103 veryLongDefaultValue, third: alsoAQuiteLongDefaultValue}) {} | 104 veryLongDefaultValue, third: alsoAQuiteLongDefaultValue}) {} |
| 104 <<< | 105 <<< |
| 105 doStuff( | 106 doStuff( |
| 106 {parameter: | 107 {parameter: |
| 107 veryLongDefaultValueThatSplits, | 108 veryLongDefaultValueThatSplits, |
| 108 another: veryLongDefaultValue, | 109 another: veryLongDefaultValue, |
| 109 third: | 110 third: |
| 110 alsoAQuiteLongDefaultValue}) {} | 111 alsoAQuiteLongDefaultValue}) {} |
| OLD | NEW |