Skip to content

Commit 1ad2a56

Browse files
authored
Enable and fix lint directives_ordering (#309)
1 parent 347b507 commit 1ad2a56

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ linter:
2323
# comment_references
2424
- control_flow_in_finally
2525
- curly_braces_in_flow_control_structures
26-
# directives_ordering
26+
- directives_ordering
2727
- empty_catches
2828
- empty_constructor_bodies
2929
- empty_statements

lib/src/multipart_file.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ import 'dart:convert';
88
import 'package:http_parser/http_parser.dart';
99

1010
import 'byte_stream.dart';
11-
import 'utils.dart';
12-
1311
// ignore: uri_does_not_exist
1412
import 'multipart_file_stub.dart'
1513
// ignore: uri_does_not_exist
1614
if (dart.library.io) 'multipart_file_io.dart';
15+
import 'utils.dart';
1716

1817
/// A file to be uploaded as part of a [MultipartRequest]. This doesn't need to
1918
/// correspond to a physical file.

lib/src/streamed_request.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import 'dart:async';
66

7-
import 'byte_stream.dart';
87
import 'base_request.dart';
8+
import 'byte_stream.dart';
99

1010
/// An HTTP request where the request body is sent asynchronously after the
1111
/// connection has been established and the headers have been sent.

lib/src/streamed_response.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
import 'dart:async';
66

7-
import 'byte_stream.dart';
8-
import 'base_response.dart';
97
import 'base_request.dart';
8+
import 'base_response.dart';
9+
import 'byte_stream.dart';
1010
import 'utils.dart';
1111

1212
/// An HTTP response where the response body is received asynchronously after

0 commit comments

Comments
 (0)