chore(shorebird_cli): standardize on Flutter style TODOs + lint fixes (#2912)

This commit is contained in:
Felix Angelov
2025-02-19 13:20:21 -06:00
committed by GitHub
parent ed4e508402
commit 325a8e3323
5 changed files with 12 additions and 8 deletions
@@ -4,6 +4,9 @@ linter:
# Disabling in favor of the new Dart 3.7 format.
# https://github.com/VeryGoodOpenSource/very_good_analysis/issues/136
require_trailing_commas: false
# Dart 3.7 format sometimes produces lines longer than 80 characters.
# https://github.com/dart-lang/sdk/issues/60173
lines_longer_than_80_chars: false
analyzer:
exclude:
- lib/**.g.dart
@@ -25,10 +25,10 @@ export 'artifact_build_exception.dart';
/// Flutter.
typedef ShorebirdBuildCommand = Future<void> Function();
// FIXME: The following three apple BuildResult classes are identical and
// should be merged. They are all capturing the idea that we want to get the
// kernel (app.dill) file generated during a build so we can use it to link
// when patching.
// TODO(bryanoltman): The following three apple BuildResult classes are
// identical and should be merged. They are all capturing the idea that we want
// to get the kernel (app.dill) file generated during a build so we can use it
// to link when patching.
/// {@template ipa_build_result}
/// Metadata about the result of a `flutter build ipa` invocation.
@@ -75,8 +75,8 @@ class MacosPatcher extends Patcher {
}
}
// FIXME: this is a direct copy of IosPatcher's implementation. We should
// consolidate this and other copied code.
// TODO(bryanoltman): this is a direct copy of IosPatcher's implementation. We
// should consolidate this and other copied code.
@override
Future<DiffStatus> assertUnpatchableDiffs({
required ReleaseArtifact releaseArtifact,
@@ -963,7 +963,8 @@ void main() {
),
]);
// Verify that the logger.chooseOne<Release> display function is correct
// Verify that the logger.chooseOne<Release> display function is
// correct
final displayFunctionCapture =
verificationResult.captured.flattened
.whereType<String Function(Release)>()
@@ -2,4 +2,4 @@ include: package:very_good_analysis/analysis_options.7.0.0.yaml
analyzer:
exclude:
- build/**
- lib/**.g.dart
- lib/**.g.dart