Commit 72de224
authored
[tool] Add Kotlin autoformatting (#5374)
Updates the tooling to fetch and use `ktfmt` for Kotlin code, the same way it currently does for the Google Java formatter, and applies that formatting (in the default mode; see discussion in the linked issue) to the repository.
In the future we could revisit the formatter or mode, but since this currently seems to be the most consistent with our other languages and to google3 formatting this is likely the option we'll want to stick with.
Fixes flutter/flutter#1187561 parent 17bd92e commit 72de224
File tree
31 files changed
+1819
-1263
lines changed- packages
- animations/example/android/app/src/main/kotlin/dev/flutter/packages/animations/example
- dynamic_layouts/example/android/app/src/main/kotlin/com/example/example
- file_selector/file_selector/example/android/app/src/main/kotlin/dev/flutter/plugins/file_selector_example
- flutter_adaptive_scaffold/example/android/app/src/main/kotlin/dev/flutter/example
- flutter_image/example/android/app/src/main/kotlin/com/example/example
- flutter_markdown/example/android/app/src/main/kotlin/io/flutter/packages/flutter_markdown_example
- go_router/example/android/app/src/main/kotlin/com/example/example
- palette_generator/example/android/app/src/main/kotlin/io/flutter/packages/palettegenerator/example
- pigeon
- example
- app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app
- platform_tests/test_plugin
- android/src
- main/kotlin/com/example/test_plugin
- test/kotlin/com/example/test_plugin
- example/android/app/src/main/kotlin/com/example/test_plugin_example
- platform/example/android/app/src/main/kotlin/dev/flutter/plaform_example
- rfw/example
- hello/android/app/src/main/kotlin/dev/flutter/rfw/examples/hello
- local/android/app/src/main/kotlin/dev/flutter/rfw/examples/local
- remote/android/app/src/main/kotlin/dev/flutter/rfw/examples/remote
- two_dimensional_scrollables/example/android/app/src/main/kotlin/com/example/example
- script/tool
- lib/src
- test
31 files changed
+1819
-1263
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
263 | | - | |
| 261 | + | |
264 | 262 | | |
265 | 263 | | |
266 | 264 | | |
| |||
0 commit comments