Skip to content

Commit 2c0b1f4

Browse files
authored
refactor(bricks): update hook dependencies (#1813)
1 parent 0fcb3cb commit 2c0b1f4

File tree

19 files changed

+34
-31
lines changed

19 files changed

+34
-31
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include: package:very_good_analysis/analysis_options.6.0.0.yaml
1+
include: package:very_good_analysis/analysis_options.yaml

bricks/create_dart_frog/hooks/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ environment:
44
sdk: ">=3.0.0 <4.0.0"
55

66
dependencies:
7-
mason: ^0.1.0-dev.39
7+
mason: ^0.1.0
88
path: ^1.8.1
99

1010
dev_dependencies:
1111
mocktail: ^1.0.0
1212
test: ^1.25.0
13-
very_good_analysis: ^6.0.0
13+
very_good_analysis: ^9.0.0
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
include: package:very_good_analysis/analysis_options.7.0.0.yaml
1+
include: package:very_good_analysis/analysis_options.yaml
2+
linter:
3+
rules:
4+
# Experimental and there are lots of false positives
5+
specify_nonobvious_property_types: false

bricks/dart_frog_dev_server/hooks/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ environment:
66

77
dependencies:
88
dart_frog_gen: ^2.0.0
9-
mason: ^0.1.0-dev.39
9+
mason: ^0.1.0
1010
pubspec_parse: ^1.2.0
1111

1212
dev_dependencies:
1313
mocktail: ^1.0.0
1414
path: ^1.8.2
1515
test: ^1.25.0
16-
very_good_analysis: ^7.0.0
16+
very_good_analysis: ^9.0.0
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
include: package:very_good_analysis/analysis_options.7.0.0.yaml
1+
include: package:very_good_analysis/analysis_options.yaml
22

33
linter:
44
rules:
55
public_member_api_docs: false
6+
# Experimental and there are lots of false positives
7+
specify_nonobvious_property_types: false

bricks/dart_frog_new/hooks/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ environment:
66

77
dependencies:
88
dart_frog_gen: ^2.0.0
9-
mason: ^0.1.0-dev.49
9+
mason: ^0.1.0
1010
path: ^1.8.0
1111

1212
dev_dependencies:
1313
mocktail: ^1.0.0
1414
test: ^1.19.2
15-
very_good_analysis: ^7.0.0
15+
very_good_analysis: ^9.0.0
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
include: package:very_good_analysis/analysis_options.6.0.0.yaml
1+
include: package:very_good_analysis/analysis_options.yaml
22
linter:
33
rules:
4-
public_member_api_docs: false
4+
public_member_api_docs: false
5+
# Experimental and there are lots of false positives
6+
specify_nonobvious_property_types: false

bricks/dart_frog_prod_server/hooks/lib/src/create_bundle.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Future<void> createBundle({
2929
'${tempDirectory.path}${path.separator}',
3030
);
3131
bundlingProgress.complete();
32-
} catch (error) {
32+
} on Exception catch (error) {
3333
bundlingProgress.fail();
3434
context.logger.err('$error');
3535
return exit(1);

bricks/dart_frog_prod_server/hooks/lib/src/pubspec_lock/pubspec_lock.dart

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/// A simple parser for pubspec.lock files.
2-
///
3-
/// This is used by the bundling process to check for those dependencies that
4-
/// are external path dependencies. Hence, it is not a complete parser, it only
5-
/// parses the information that is needed for the bundling process.
6-
library pubspec_lock;
7-
81
import 'dart:collection';
92

103
import 'package:equatable/equatable.dart';
@@ -35,6 +28,8 @@ class PubspecLock {
3528
late final YamlMap yaml;
3629
try {
3730
yaml = loadYaml(content) as YamlMap;
31+
// ignoring for backward compatibility
32+
// ignore: avoid_catches_without_on_clauses
3833
} catch (_) {
3934
throw const PubspecLockParseException();
4035
}
@@ -53,6 +48,8 @@ class PubspecLock {
5348
data: entry.value as YamlMap,
5449
);
5550
parsedPackages.add(package);
51+
// ignoring for backward compatibility
52+
// ignore: avoid_catches_without_on_clauses
5653
} catch (_) {
5754
// Ignore those packages that for some reason cannot be parsed.
5855
}

bricks/dart_frog_prod_server/hooks/pre_gen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Future<void> preGen(
4848
final RouteConfiguration configuration;
4949
try {
5050
configuration = buildConfiguration(projectDirectory);
51-
} catch (error) {
51+
} on Exception catch (error) {
5252
context.logger.err('$error');
5353
return exit(1);
5454
}

0 commit comments

Comments
 (0)