Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bricks/dart_frog_prod_server/hooks/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -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:
public_member_api_docs: false
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Future<void> createBundle({
'${tempDirectory.path}${path.separator}',
);
bundlingProgress.complete();
} catch (error) {
} on Exception catch (error) {
bundlingProgress.fail();
context.logger.err('$error');
return exit(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// This is used by the bundling process to check for those dependencies that
/// are external path dependencies. Hence, it is not a complete parser, it only
/// parses the information that is needed for the bundling process.
library pubspec_lock;
library;

import 'dart:collection';

Expand Down Expand Up @@ -35,7 +35,7 @@ class PubspecLock {
late final YamlMap yaml;
try {
yaml = loadYaml(content) as YamlMap;
} catch (_) {
} on Exception catch (_) {
throw const PubspecLockParseException();
}

Expand All @@ -53,7 +53,7 @@ class PubspecLock {
data: entry.value as YamlMap,
);
parsedPackages.add(package);
} catch (_) {
} on Exception catch (_) {
// Ignore those packages that for some reason cannot be parsed.
}
}
Expand Down
2 changes: 1 addition & 1 deletion bricks/dart_frog_prod_server/hooks/pre_gen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Future<void> preGen(
final RouteConfiguration configuration;
try {
configuration = buildConfiguration(projectDirectory);
} catch (error) {
} on Exception catch (error) {
context.logger.err('$error');
return exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion bricks/dart_frog_prod_server/hooks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dependencies:
dev_dependencies:
mocktail: ^1.0.0
test: ^1.25.0
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Collection of `pubspec.lock` files used as fixtures during testing.
library pubspec_locks;
library;

/// An artificially crafted `pubspec.lock` file with:
///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Not required for test files
// ignore_for_file: prefer_const_constructors

import 'package:dart_frog_prod_server_hooks/src/pubspec_lock/pubspec_lock.dart';
Expand Down
Loading