blob: 13d920e286235ceccc4562d7eda9675e10ccf88c [file] [log] [blame]
// 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((generator) => generator().canBeAppliedInBulk)
.isNotEmpty)
.map((e) => e.key);
print(' # bulk-fixable lints');
for (var lintName in bulkFixCodes) {
print(' - $lintName');
}
}