Enable and fix pedantic lints
diff --git a/analysis_options.yaml b/analysis_options.yaml
index 7ae031b..58b78c5 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -1,3 +1,4 @@
+include: package:pedantic/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: false
@@ -58,7 +59,6 @@
- prefer_typing_uninitialized_variables
- recursive_getters
- slash_for_doc_comments
- - super_goes_last
- test_types_in_equals
- throw_in_finally
- type_init_formals
diff --git a/lib/shelf_proxy.dart b/lib/shelf_proxy.dart
index 76494af..36e7e57 100644
--- a/lib/shelf_proxy.dart
+++ b/lib/shelf_proxy.dart
@@ -4,6 +4,7 @@
import 'package:http/http.dart' as http;
import 'package:path/path.dart' as p;
+import 'package:pedantic/pedantic.dart';
import 'package:shelf/shelf.dart';
import 'src/utils.dart';
@@ -50,7 +51,7 @@
_addHeader(clientRequest.headers, 'via',
'${serverRequest.protocolVersion} $proxyName');
- store(serverRequest.read(), clientRequest.sink);
+ unawaited(store(serverRequest.read(), clientRequest.sink));
var clientResponse = await client.send(clientRequest);
// Add a Via header. See
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.45
diff --git a/pubspec.yaml b/pubspec.yaml
index bdddffd..928957a 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -10,6 +10,7 @@
dependencies:
http: '>=0.9.0 <0.13.0'
path: '>=1.0.0 <2.0.0'
+ pedantic: ^1.0.0
shelf: '>=0.5.2 <0.8.0'
dev_dependencies: