diff --git a/bricks/r13n/hooks/analysis_options.yaml b/bricks/r13n/hooks/analysis_options.yaml index 273cb60..c2f4cbb 100644 --- a/bricks/r13n/hooks/analysis_options.yaml +++ b/bricks/r13n/hooks/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.7.0.0.yaml diff --git a/bricks/r13n/hooks/pubspec.yaml b/bricks/r13n/hooks/pubspec.yaml index 69a2915..9a5003a 100644 --- a/bricks/r13n/hooks/pubspec.yaml +++ b/bricks/r13n/hooks/pubspec.yaml @@ -15,4 +15,4 @@ dependencies: dev_dependencies: mocktail: ^1.0.0 test: ^1.21.1 - very_good_analysis: ^6.0.0 + very_good_analysis: ^7.0.0 diff --git a/bricks/r13n/hooks/test/lib/r13n_arb_document_missing_region_tag_exception_test.dart b/bricks/r13n/hooks/test/lib/r13n_arb_document_missing_region_tag_exception_test.dart index 68d73f6..b643c79 100644 --- a/bricks/r13n/hooks/test/lib/r13n_arb_document_missing_region_tag_exception_test.dart +++ b/bricks/r13n/hooks/test/lib/r13n_arb_document_missing_region_tag_exception_test.dart @@ -1,3 +1,4 @@ +// Not needed for test files // ignore_for_file: prefer_const_constructors import 'package:r13n_hooks/hooks.dart'; diff --git a/bricks/r13n/hooks/test/lib/r13n_compatibility_exception_test.dart b/bricks/r13n/hooks/test/lib/r13n_compatibility_exception_test.dart index d037d47..3064315 100644 --- a/bricks/r13n/hooks/test/lib/r13n_compatibility_exception_test.dart +++ b/bricks/r13n/hooks/test/lib/r13n_compatibility_exception_test.dart @@ -1,3 +1,4 @@ +// Not needed for test files // ignore_for_file: prefer_const_constructors import 'package:r13n_hooks/hooks.dart'; diff --git a/bricks/r13n/hooks/test/lib/r13n_yaml_parse_exception_test.dart b/bricks/r13n/hooks/test/lib/r13n_yaml_parse_exception_test.dart index 4cad7b7..0d78865 100644 --- a/bricks/r13n/hooks/test/lib/r13n_yaml_parse_exception_test.dart +++ b/bricks/r13n/hooks/test/lib/r13n_yaml_parse_exception_test.dart @@ -1,3 +1,4 @@ +// Not needed for test files // ignore_for_file: prefer_const_constructors import 'package:r13n_hooks/hooks.dart'; diff --git a/bricks/r13n/hooks/test/lib/runtime_compatibility_test.dart b/bricks/r13n/hooks/test/lib/runtime_compatibility_test.dart index 7419a3a..78828bc 100644 --- a/bricks/r13n/hooks/test/lib/runtime_compatibility_test.dart +++ b/bricks/r13n/hooks/test/lib/runtime_compatibility_test.dart @@ -1,3 +1,4 @@ +// Not needed for test files // ignore_for_file: prefer_const_constructors import 'dart:io'; @@ -44,7 +45,7 @@ void main() { tearDown(() { try { tempDir.deleteSync(recursive: true); - } catch (_) {} + } on Exception catch (_) {} }); test('throws when a pubspec.lock does not exist', () { diff --git a/bricks/r13n/hooks/test/pre_gen_test.dart b/bricks/r13n/hooks/test/pre_gen_test.dart index f766b64..f2bd04b 100644 --- a/bricks/r13n/hooks/test/pre_gen_test.dart +++ b/bricks/r13n/hooks/test/pre_gen_test.dart @@ -144,7 +144,7 @@ sdks: final exitCalls = []; try { await pre_gen.preGen(hookContext, exit: exitCalls.add); - } catch (err) { + } on Exception catch (err) { expect(err, isA()); } expect(exitCalls, equals([]));