Skip to content

Commit b2d631a

Browse files
committed
fix issues
1 parent 43e3963 commit b2d631a

3 files changed

Lines changed: 21 additions & 11 deletions

File tree

tool/lib/commands/presubmit.dart

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ class PresubmitCommand extends Command {
6565
final pathsToFormat = _getPathsToFormat(p);
6666

6767
final formatProcess = await pm.runProcess(
68-
CliCommand.dart(['format', ...pathsToFormat], throwOnException: false),
68+
CliCommand.dart([
69+
'format',
70+
...pathsToFormat,
71+
], throwOnException: false),
6972
workingDirectory: p.packagePath,
7073
);
7174

@@ -108,10 +111,12 @@ class PresubmitCommand extends Command {
108111
final pathsToFormat = _getPathsToFormat(p);
109112

110113
final formatProcess = await pm.runProcess(
111-
CliCommand.dart(
112-
['format', '--output=none', '--set-exit-if-changed', ...pathsToFormat],
113-
throwOnException: false,
114-
),
114+
CliCommand.dart([
115+
'format',
116+
'--output=none',
117+
'--set-exit-if-changed',
118+
...pathsToFormat,
119+
], throwOnException: false),
115120
workingDirectory: p.packagePath,
116121
);
117122

tool/test/update_version_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
44

5+
import 'package:devtools_tool/commands/update_version.dart';
56
import 'package:test/test.dart';
6-
import '../lib/commands/update_version.dart';
77

88
void main() {
99
group('calculateNewVersion', () {

tool/test/validate_skills_test.dart

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ void main() {
1111
test('Validate DevTools Skills', () async {
1212
final Level oldLevel = Logger.root.level;
1313
Logger.root.level = Level.ALL;
14-
final StreamSubscription<LogRecord> subscription = Logger.root.onRecord.listen((record) {
15-
print(record.message);
16-
});
14+
final StreamSubscription<LogRecord> subscription = Logger.root.onRecord
15+
.listen((record) {
16+
print(record.message);
17+
});
1718

1819
try {
19-
// TODO(https://github.com/flutter/skills/issues/85): Update test
20+
// TODO(https://github.com/flutter/skills/issues/85): Update test
2021
// to use dart_skills_lint.yaml for config when available.
2122
final bool isValid = await validateSkills(
2223
skillDirPaths: ['../.agents/skills'],
@@ -26,7 +27,11 @@ void main() {
2627
'check-trailing-whitespace': AnalysisSeverity.error,
2728
},
2829
);
29-
expect(isValid, isTrue, reason: 'Skills validation failed. See above for details.');
30+
expect(
31+
isValid,
32+
isTrue,
33+
reason: 'Skills validation failed. See above for details.',
34+
);
3035
} finally {
3136
Logger.root.level = oldLevel;
3237
await subscription.cancel();

0 commit comments

Comments
 (0)