From 41ac8b88ec2dca7950e266f9e1cca753ca933951 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 20 Dec 2018 12:12:51 -0800 Subject: [PATCH] [License] Enable directives_ordering lint --- engine/src/flutter/tools/licenses/analysis_options.yaml | 1 + engine/src/flutter/tools/licenses/lib/filesystem.dart | 2 +- engine/src/flutter/tools/licenses/lib/licenses.dart | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/tools/licenses/analysis_options.yaml b/engine/src/flutter/tools/licenses/analysis_options.yaml index 98ec5cd1f7..294a92372d 100644 --- a/engine/src/flutter/tools/licenses/analysis_options.yaml +++ b/engine/src/flutter/tools/licenses/analysis_options.yaml @@ -16,6 +16,7 @@ linter: - cancel_subscriptions - close_sinks - control_flow_in_finally + - directives_ordering - empty_statements - empty_catches - hash_and_equals diff --git a/engine/src/flutter/tools/licenses/lib/filesystem.dart b/engine/src/flutter/tools/licenses/lib/filesystem.dart index 27034b57ab..f9ac92aa76 100644 --- a/engine/src/flutter/tools/licenses/lib/filesystem.dart +++ b/engine/src/flutter/tools/licenses/lib/filesystem.dart @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'dart:convert'; import 'dart:collection'; +import 'dart:convert'; import 'dart:io' as io; import 'package:path/path.dart' as path; diff --git a/engine/src/flutter/tools/licenses/lib/licenses.dart b/engine/src/flutter/tools/licenses/lib/licenses.dart index fec29c4d80..448674722b 100644 --- a/engine/src/flutter/tools/licenses/lib/licenses.dart +++ b/engine/src/flutter/tools/licenses/lib/licenses.dart @@ -6,8 +6,8 @@ import 'dart:convert'; import 'dart:io' as system; import 'cache.dart'; -import 'patterns.dart'; import 'limits.dart'; +import 'patterns.dart'; class FetchedContentsOf extends Key { FetchedContentsOf(dynamic value) : super(value); }