Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-tryRead
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwichel authored Dec 19, 2024
2 parents a2c8721 + fea901c commit 6f2a9a0
Show file tree
Hide file tree
Showing 39 changed files with 40 additions and 31 deletions.
2 changes: 1 addition & 1 deletion bricks/dart_frog_new/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:
Expand Down
2 changes: 1 addition & 1 deletion bricks/dart_frog_new/hooks/lib/post_gen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Future<void> postGen(
io.File(
path.join(currentDirectory.path, filename),
).renameSync('$containingDirectoryPath/$filename');
} catch (error) {
} on Exception catch (error) {
context.logger.err('$error');
return exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion bricks/dart_frog_new/hooks/lib/pre_gen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion bricks/dart_frog_new/hooks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion examples/counter/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
analyzer:
exclude:
- build/**
Expand Down
2 changes: 1 addition & 1 deletion examples/counter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dev_dependencies:
http: ^1.0.0
mocktail: ^1.0.0
test: ^1.25.0
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
2 changes: 1 addition & 1 deletion examples/echo/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
analyzer:
exclude:
- build/**
Expand Down
2 changes: 1 addition & 1 deletion examples/echo/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dev_dependencies:
http: ^1.0.0
mocktail: ^1.0.0
test: ^1.25.0
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
2 changes: 1 addition & 1 deletion examples/hello_world/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
analyzer:
exclude:
- build/**
Expand Down
2 changes: 1 addition & 1 deletion examples/hello_world/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dev_dependencies:
http: ^1.0.0
mocktail: ^1.0.0
test: ^1.25.0
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
2 changes: 1 addition & 1 deletion examples/kitchen_sink/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
analyzer:
exclude:
- build/**
Expand Down
2 changes: 1 addition & 1 deletion examples/kitchen_sink/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dev_dependencies:
http: ^1.0.0
mocktail: ^1.0.0
test: ^1.25.0
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
1 change: 1 addition & 0 deletions examples/kitchen_sink/test/routes/photos/upload_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Not needed for test file
// ignore_for_file: prefer_const_constructors

import 'dart:io';
Expand Down
2 changes: 1 addition & 1 deletion examples/todos/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
analyzer:
exclude:
- build/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// An in-memory implementation of the TodosDataSource interface.
library in_memory_todos_data_source;
library;

export 'package:todos_data_source/todos_data_source.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,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 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// A generic interface for managing todos.
library todos_data_source;
library;

export 'src/models/models.dart';
export 'src/todos_data_source.dart';
2 changes: 1 addition & 1 deletion examples/todos/packages/todos_data_source/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ dev_dependencies:
json_serializable: ^6.3.1
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,3 +1,4 @@
// Not required for test files
// ignore_for_file: avoid_redundant_argument_values
import 'package:test/test.dart';
import 'package:todos_data_source/todos_data_source.dart';
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:test/test.dart';
import 'package:todos_data_source/todos_data_source.dart';
Expand Down
2 changes: 1 addition & 1 deletion examples/todos/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ dev_dependencies:
http: ^1.0.0
mocktail: ^1.0.0
test: ^1.25.0
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
2 changes: 1 addition & 1 deletion examples/web_socket_counter/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
analyzer:
exclude:
- build/**
Expand Down
2 changes: 1 addition & 1 deletion examples/web_socket_counter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ dev_dependencies:
http: ^1.2.1
mocktail: ^1.0.0
test: ^1.25.0
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
web_socket_client: ^0.1.0-dev.1
2 changes: 1 addition & 1 deletion packages/dart_frog_auth/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
2 changes: 1 addition & 1 deletion packages/dart_frog_auth/lib/dart_frog_auth.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Header auth based middlewares for Dart Frog
library dart_frog_auth;
library;

export 'src/dart_frog_auth.dart';
2 changes: 1 addition & 1 deletion packages/dart_frog_auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ dependencies:
dev_dependencies:
mocktail: ^1.0.0
test: ^1.19.2
very_good_analysis: ">=5.1.0 <7.0.0"
very_good_analysis: ^7.0.0
2 changes: 2 additions & 0 deletions packages/dart_frog_auth/test/src/dart_frog_auth_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Not required for test files
// ignore_for_file: prefer_const_constructors
// Not required for test files
// ignore_for_file: deprecated_member_use_from_same_package
import 'dart:io';

Expand Down
2 changes: 1 addition & 1 deletion packages/dart_frog_gen/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
2 changes: 1 addition & 1 deletion packages/dart_frog_gen/lib/dart_frog_gen.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Code generation tooling for package:dart_frog
library dart_frog_gen;
library;

export 'src/build_route_configuration.dart';
export 'src/validate_route_configuration/validate_route_configuration.dart';
2 changes: 1 addition & 1 deletion packages/dart_frog_gen/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ dependencies:
dev_dependencies:
mocktail: ^1.0.0
test: ^1.19.2
very_good_analysis: ">=5.1.0 <7.0.0"
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Not needed for test file
// ignore_for_file: inference_failure_on_collection_literal

import 'dart:io';
Expand Down
1 change: 1 addition & 0 deletions packages/dart_frog_gen/test/src/middleware_file_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Not needed for test file
// ignore_for_file: prefer_const_constructors

import 'package:dart_frog_gen/dart_frog_gen.dart';
Expand Down
1 change: 1 addition & 0 deletions packages/dart_frog_gen/test/src/route_directory_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Not needed for test file
// ignore_for_file: prefer_const_constructors

import 'package:dart_frog_gen/dart_frog_gen.dart';
Expand Down
1 change: 1 addition & 0 deletions packages/dart_frog_gen/test/src/route_file_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Not needed for test file
// ignore_for_file: prefer_const_constructors

import 'package:dart_frog_gen/dart_frog_gen.dart';
Expand Down
2 changes: 1 addition & 1 deletion packages/dart_frog_web_socket/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// WebSocket support for package:dart_frog
library dart_frog_web_socket;
library;

export 'package:web_socket_channel/web_socket_channel.dart';

Expand Down
2 changes: 1 addition & 1 deletion packages/dart_frog_web_socket/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ dev_dependencies:
http: ^1.0.0
mocktail: ^1.0.0
test: ^1.19.2
very_good_analysis: ">=5.1.0 <7.0.0"
very_good_analysis: ^7.0.0

0 comments on commit 6f2a9a0

Please sign in to comment.