| OLD | NEW |
| 1 40 columns | | 1 40 columns | |
| 2 >>> do not split before first clause | 2 >>> do not split before first clause |
| 3 for (extremelyReallyQuiteVeryLongFirstClause; second; third) {} | 3 for (extremelyReallyQuiteVeryLongFirstClause; second; third) {} |
| 4 <<< | 4 <<< |
| 5 for (extremelyReallyQuiteVeryLongFirstClause; | 5 for (extremelyReallyQuiteVeryLongFirstClause; |
| 6 second; | 6 second; |
| 7 third) {} | 7 third) {} |
| 8 >>> split after first clause | 8 >>> split after first clause |
| 9 for (veryLongFirstClause; veryLongSecondClause; third) {} | 9 for (veryLongFirstClause; veryLongSecondClause; third) {} |
| 10 <<< | 10 <<< |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 } | 76 } |
| 77 >>> don't force updates to split if clauses do | 77 >>> don't force updates to split if clauses do |
| 78 for (var a = 0; longCondition(expression); a += 1, b += 1) { | 78 for (var a = 0; longCondition(expression); a += 1, b += 1) { |
| 79 ; | 79 ; |
| 80 } | 80 } |
| 81 <<< | 81 <<< |
| 82 for (var a = 0; | 82 for (var a = 0; |
| 83 longCondition(expression); | 83 longCondition(expression); |
| 84 a += 1, b += 1) { | 84 a += 1, b += 1) { |
| 85 ; | 85 ; |
| 86 } | 86 } |
| 87 >>> single line for without curlies |
| 88 for (i = 0; i < 10; i++) something(i); |
| 89 <<< |
| 90 for (i = 0; i < 10; i++) something(i); |
| 91 >>> multi-line for without curlies |
| 92 for (i = 0; i < 10; i++) somethingLonger(i); |
| 93 <<< |
| 94 for (i = 0; i < 10; i++) |
| 95 somethingLonger(i); |
| 96 >>> single line for-in without curlies |
| 97 for (i in sequence) something(i); |
| 98 <<< |
| 99 for (i in sequence) something(i); |
| 100 >>> multi-line for-in without curlies |
| 101 for (i in sequence) somethingMuchLonger(i); |
| 102 <<< |
| 103 for (i in sequence) |
| 104 somethingMuchLonger(i); |
| 105 >>> single line while without curlies |
| 106 while (condition) something(i); |
| 107 <<< |
| 108 while (condition) something(i); |
| 109 >>> multi-line while without curlies |
| 110 while (condition) somethingMuchLonger(i); |
| 111 <<< |
| 112 while (condition) |
| 113 somethingMuchLonger(i); |
| OLD | NEW |