Skip to content

Commit 7917069

Browse files
committed
Run the formatter on the generated code.
1 parent ef65a5f commit 7917069

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tool/task.dart

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ Future<void> analyzeTestPackages() async {
122122
}
123123
}
124124

125+
Future<void> _runFormatter() async {
126+
await SubprocessLauncher('formatter').runStreamedDartCommand(['format', '.']);
127+
}
128+
125129
Future<void> _buildHelp() async {
126130
print('''
127131
Usage:
@@ -156,8 +160,11 @@ Future<void> buildAll() async {
156160
await buildDartdocOptions();
157161
}
158162

159-
Future<void> buildRenderers() async => await SubprocessLauncher('build')
160-
.runStreamedDartCommand([path.join('tool', 'mustachio', 'builder.dart')]);
163+
Future<void> buildRenderers() async {
164+
await SubprocessLauncher('build')
165+
.runStreamedDartCommand([path.join('tool', 'mustachio', 'builder.dart')]);
166+
await _runFormatter();
167+
}
161168

162169
Future<void> buildDartdocOptions() async {
163170
var version = _getPackageVersion();

0 commit comments

Comments
 (0)