Files
sdk/pkg/analysis_server/tool/bulk_fix/supported_lints.dart
T
Brian Wilkerson e453325e92 Migrate the supported_lints tool
Change-Id: I4df8b8fd209e96e18e8165d01f3860fe9dbbee7b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195161
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-04-13 17:17:57 +00:00

18 lines
678 B
Dart

// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analysis_server/src/services/correction/fix_internal.dart';
/// Print lints that are bulk-fixable in a format that can be included in
/// analysis options.
void main() {
final bulkFixCodes = FixProcessor.lintProducerMap.entries
.where((e) => e.value.where((fix) => fix.canBeBulkApplied).isNotEmpty)
.map((e) => e.key);
print(' # bulk-fixable lints');
for (var lintName in bulkFixCodes) {
print(' - $lintName');
}
}