Skip to content

Commit

Permalink
[License] Enable prefer_const_constructors lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cbracken committed Dec 20, 2018
1 parent 2b207a5 commit bd648ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/licenses/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/licenses/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd648ba

Please sign in to comment.