refactor(artifact_proxy): upgrade analysis_options (#2713)

This commit is contained in:
Felix Angelov
2024-12-18 17:39:58 -06:00
committed by GitHub
parent 0975a1a3a7
commit 1efa7e43e3
7 changed files with 10 additions and 9 deletions
@@ -1 +1,3 @@
include: package:very_good_analysis/analysis_options.5.1.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
analyzer:
exclude: "*.g.dart"
-3
View File
@@ -1,5 +1,3 @@
// ignore_for_file: avoid_print
import 'dart:io';
import 'package:artifact_proxy/artifact_proxy.dart';
@@ -24,7 +22,6 @@ Future<HttpServer> serve(Handler proxy, InternetAddress ip, int port) async {
const pipeline = Pipeline();
final handler = pipeline.addMiddleware(logRequests()).addHandler(proxy);
final server = await shelf_io.serve(handler, ip, port);
print('Serving at http://localhost:${server.port}');
server.autoCompress = true;
return server;
}
+1
View File
@@ -9,6 +9,7 @@ targets:
- cast_nullable_to_non_nullable
- lines_longer_than_80_chars
- strict_raw_type
- document_ignores
json_serializable:
options:
field_rename: snake
@@ -1,3 +1,4 @@
// print is used for diagnostic logs.
// ignore_for_file: avoid_print
import 'package:artifact_proxy/artifact_proxy.dart';
@@ -60,7 +61,7 @@ Handler artifactProxyHandler({required ArtifactManifestClient client}) {
final ArtifactsManifest manifest;
try {
manifest = await client.getManifest(shorebirdEngineRevision);
} catch (error) {
} on Exception catch (error) {
return Response.notFound(
'Failed to fetch manifest for $shorebirdEngineRevision\n$error',
);
@@ -1,6 +1,6 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: implicit_dynamic_parameter, require_trailing_commas, cast_nullable_to_non_nullable, lines_longer_than_80_chars, strict_raw_type
// ignore_for_file: implicit_dynamic_parameter, require_trailing_commas, cast_nullable_to_non_nullable, lines_longer_than_80_chars, strict_raw_type, document_ignores
part of 'artifacts_manifest.dart';
+2 -2
View File
@@ -538,10 +538,10 @@ packages:
dependency: "direct dev"
description:
name: very_good_analysis
sha256: "1fb637c0022034b1f19ea2acb42a3603cbd8314a470646a59a2fb01f5f3a8629"
sha256: "62d2b86d183fb81b2edc22913d9f155d26eb5cf3855173adb1f59fac85035c63"
url: "https://pub.dev"
source: hosted
version: "6.0.0"
version: "7.0.0"
vm_service:
dependency: transitive
description:
+1 -1
View File
@@ -21,4 +21,4 @@ dev_dependencies:
json_serializable: ^6.9.0
mocktail: ^1.0.4
test: ^1.25.12
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0