From 35e2a22694e7d12f12c6536439de75c7e2cb8714 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:07:23 +0000 Subject: [PATCH 1/3] chore(deps): bump very_good_analysis in /bricks/dart_frog_new/hooks Bumps [very_good_analysis](https://github.com/VeryGoodOpenSource/very_good_analysis) from 6.0.0 to 7.0.0. - [Release notes](https://github.com/VeryGoodOpenSource/very_good_analysis/releases) - [Changelog](https://github.com/VeryGoodOpenSource/very_good_analysis/blob/main/CHANGELOG.md) - [Commits](https://github.com/VeryGoodOpenSource/very_good_analysis/compare/v6.0.0...v7.0.0) --- updated-dependencies: - dependency-name: very_good_analysis dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- bricks/dart_frog_new/hooks/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bricks/dart_frog_new/hooks/pubspec.yaml b/bricks/dart_frog_new/hooks/pubspec.yaml index 65b2d371e..873731292 100644 --- a/bricks/dart_frog_new/hooks/pubspec.yaml +++ b/bricks/dart_frog_new/hooks/pubspec.yaml @@ -12,4 +12,4 @@ dependencies: dev_dependencies: mocktail: ^1.0.0 test: ^1.19.2 - very_good_analysis: ^6.0.0 + very_good_analysis: ^7.0.0 From 850e1c138f6510d8e15368482020e3fa76d2b023 Mon Sep 17 00:00:00 2001 From: Tom Arra Date: Wed, 18 Dec 2024 14:14:47 -0600 Subject: [PATCH 2/3] analyzer update --- bricks/dart_frog_new/hooks/analysis_options.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bricks/dart_frog_new/hooks/analysis_options.yaml b/bricks/dart_frog_new/hooks/analysis_options.yaml index c753dcaa7..291e0e635 100644 --- a/bricks/dart_frog_new/hooks/analysis_options.yaml +++ b/bricks/dart_frog_new/hooks/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.6.0.0.yaml +include: package:very_good_analysis/analysis_options.7.0.0.yaml linter: rules: From 2394e94f5857d66242de8a5369f9596d752674f5 Mon Sep 17 00:00:00 2001 From: Tom Arra Date: Wed, 18 Dec 2024 14:16:24 -0600 Subject: [PATCH 3/3] analyzer fixes --- bricks/dart_frog_new/hooks/lib/post_gen.dart | 2 +- bricks/dart_frog_new/hooks/lib/pre_gen.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bricks/dart_frog_new/hooks/lib/post_gen.dart b/bricks/dart_frog_new/hooks/lib/post_gen.dart index ae7e7f734..ed7b9e8ab 100644 --- a/bricks/dart_frog_new/hooks/lib/post_gen.dart +++ b/bricks/dart_frog_new/hooks/lib/post_gen.dart @@ -28,7 +28,7 @@ Future postGen( io.File( path.join(currentDirectory.path, filename), ).renameSync('$containingDirectoryPath/$filename'); - } catch (error) { + } on Exception catch (error) { context.logger.err('$error'); return exit(1); } diff --git a/bricks/dart_frog_new/hooks/lib/pre_gen.dart b/bricks/dart_frog_new/hooks/lib/pre_gen.dart index 41e9549a1..5b83f5237 100644 --- a/bricks/dart_frog_new/hooks/lib/pre_gen.dart +++ b/bricks/dart_frog_new/hooks/lib/pre_gen.dart @@ -29,7 +29,7 @@ void preGen( final RouteConfiguration routeConfiguration; try { routeConfiguration = buildConfiguration(projectDirectory); - } catch (error) { + } on Exception catch (error) { context.logger.err('$error'); return exit(1); }