mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[License] Enable prefer_const_constructors lint
This commit is contained in:
parent
2b207a51c7
commit
bd648bad6e
@ -49,6 +49,7 @@ linter:
|
||||
- package_prefixed_library_names
|
||||
- prefer_asserts_in_initializer_lists
|
||||
- prefer_collection_literals
|
||||
- prefer_const_constructors
|
||||
- prefer_const_declarations
|
||||
- prefer_equal_for_default_values
|
||||
- prefer_final_fields
|
||||
|
||||
@ -2171,7 +2171,7 @@ Future<String> _readSignature(String goldenPath) async {
|
||||
try {
|
||||
final system.File goldenFile = system.File(goldenPath);
|
||||
final String goldenSignature = await goldenFile.openRead()
|
||||
.transform(utf8.decoder).transform(LineSplitter()).first;
|
||||
.transform(utf8.decoder).transform(const LineSplitter()).first;
|
||||
final RegExp signaturePattern = RegExp(r'Signature: (\w+)');
|
||||
final Match goldenMatch = signaturePattern.matchAsPrefix(goldenSignature);
|
||||
if (goldenMatch != null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user