Skip to content

Commit f0d1fe1

Browse files
pqcommit-bot@chromium.org
authored andcommitted
utility that reports bulk-fixable lints
Change-Id: Ia3946edc36955430c5141b004293093ab09c923d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/164604 Commit-Queue: Phil Quitslund <pquitslund@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
1 parent d11734f commit f0d1fe1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
import 'package:analysis_server/src/services/correction/bulk_fix_processor.dart';
6+
7+
/// Print lints that are bulk-fixable in a format that can be included in
8+
/// analysis options.
9+
void main() {
10+
print(' # bulk-fixable lints');
11+
for (var lintName in BulkFixProcessor.lintProducerMap.keys) {
12+
print(' - $lintName');
13+
}
14+
}

0 commit comments

Comments
 (0)