Skip to content

Commit

Permalink
refactor(examples): upgrade to Very Good Analysis 4.0.0 (felangel#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Feb 13, 2023
1 parent 2ea3109 commit 644bbd5
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 20 deletions.
1 change: 1 addition & 0 deletions .github/workflows/examples_counter.yaml
Expand Up @@ -7,6 +7,7 @@ concurrency:
on:
pull_request:
paths:
- "examples/counter/pubspec.yaml"
- "examples/counter/routes/**"
- "examples/counter/lib/**"
- "examples/counter/test/**"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples_echo.yaml
Expand Up @@ -7,6 +7,7 @@ concurrency:
on:
pull_request:
paths:
- "examples/echo/pubspec.yaml"
- "examples/echo/routes/**"
- "examples/echo/lib/**"
- "examples/echo/test/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples_hello_world.yaml
Expand Up @@ -7,7 +7,7 @@ concurrency:
on:
pull_request:
paths:
- "examples/hello_world/routes/**"
- "examples/hello_world/pubspec.yaml"
- "examples/hello_world/lib/**"
- "examples/hello_world/test/**"
- "examples/hello_world/e2e/**"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples_kitchen_sink.yaml
Expand Up @@ -7,6 +7,7 @@ concurrency:
on:
pull_request:
paths:
- "examples/kitchen_sink/pubspec.yaml"
- "examples/kitchen_sink/routes/**"
- "examples/kitchen_sink/lib/**"
- "examples/kitchen_sink/test/**"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/examples_todos.yaml
Expand Up @@ -7,9 +7,11 @@ concurrency:
on:
pull_request:
paths:
- "examples/todos/pubspec.yaml"
- "examples/todos/routes/**"
- "examples/todos/lib/**"
- "examples/todos/test/**"
- "examples/todos/packages/**/pubspec.yaml"
- "examples/todos/packages/**/lib/**"
- "examples/todos/packages/**/test/**"
- "examples/todos/packages/**/e2e/**"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples_web_socket_counter.yaml
Expand Up @@ -7,6 +7,7 @@ concurrency:
on:
pull_request:
paths:
- "examples/web_socket_counter/pubspec.yaml"
- "examples/web_socket_counter/routes/**"
- "examples/web_socket_counter/lib/**"
- "examples/web_socket_counter/test/**"
Expand Down
2 changes: 1 addition & 1 deletion examples/counter/analysis_options.yaml
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.3.1.0.yaml
include: package:very_good_analysis/analysis_options.4.0.0.yaml
analyzer:
exclude:
- build/**
Expand Down
2 changes: 1 addition & 1 deletion examples/counter/pubspec.yaml
Expand Up @@ -13,4 +13,4 @@ dev_dependencies:
http: ^0.13.5
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysis: ^3.1.0
very_good_analysis: ^4.0.0
2 changes: 1 addition & 1 deletion examples/echo/analysis_options.yaml
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.3.1.0.yaml
include: package:very_good_analysis/analysis_options.4.0.0.yaml
analyzer:
exclude:
- build/**
Expand Down
2 changes: 1 addition & 1 deletion examples/echo/pubspec.yaml
Expand Up @@ -13,4 +13,4 @@ dev_dependencies:
http: ^0.13.5
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysis: ^3.1.0
very_good_analysis: ^4.0.0
2 changes: 1 addition & 1 deletion examples/hello_world/analysis_options.yaml
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.3.1.0.yaml
include: package:very_good_analysis/analysis_options.4.0.0.yaml
analyzer:
exclude:
- build/**
Expand Down
2 changes: 1 addition & 1 deletion examples/hello_world/pubspec.yaml
Expand Up @@ -13,4 +13,4 @@ dev_dependencies:
http: ^0.13.5
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysis: ^3.1.0
very_good_analysis: ^4.0.0
2 changes: 1 addition & 1 deletion examples/kitchen_sink/analysis_options.yaml
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.3.1.0.yaml
include: package:very_good_analysis/analysis_options.4.0.0.yaml
analyzer:
exclude:
- build/**
Expand Down
2 changes: 1 addition & 1 deletion examples/kitchen_sink/pubspec.yaml
Expand Up @@ -13,4 +13,4 @@ dev_dependencies:
http: ^0.13.5
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysis: ^3.1.0
very_good_analysis: ^4.0.0
2 changes: 1 addition & 1 deletion examples/todos/analysis_options.yaml
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.3.1.0.yaml
include: package:very_good_analysis/analysis_options.4.0.0.yaml
analyzer:
exclude:
- build/**
Expand Down
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.3.1.0.yaml
include: package:very_good_analysis/analysis_options.4.0.0.yaml
Expand Up @@ -4,7 +4,7 @@ version: 0.1.0+1
publish_to: none

environment:
sdk: ">=2.17.0 <3.0.0"
sdk: ">=2.19.0 <3.0.0"

dependencies:
todos_data_source:
Expand All @@ -14,4 +14,4 @@ dependencies:
dev_dependencies:
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysis: ^3.1.0
very_good_analysis: ^4.0.0
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.3.1.0.yaml
include: package:very_good_analysis/analysis_options.4.0.0.yaml
Expand Up @@ -22,8 +22,8 @@ part 'todo.g.dart';
class Todo extends Equatable {
/// {@macro `todo`}
Todo({
this.id,
required this.title,
this.id,
this.description = '',
this.isCompleted = false,
}) : assert(id == null || id.isNotEmpty, 'id cannot be empty');
Expand Down
4 changes: 2 additions & 2 deletions examples/todos/packages/todos_data_source/pubspec.yaml
Expand Up @@ -4,7 +4,7 @@ version: 0.1.0+1
publish_to: none

environment:
sdk: ">=2.17.0 <3.0.0"
sdk: ">=2.19.0 <3.0.0"

dependencies:
equatable: ^2.0.3
Expand All @@ -16,4 +16,4 @@ dev_dependencies:
json_serializable: ^6.3.1
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysis: ^3.1.0
very_good_analysis: ^4.0.0
2 changes: 1 addition & 1 deletion examples/todos/pubspec.yaml
Expand Up @@ -17,4 +17,4 @@ dev_dependencies:
http: ^0.13.5
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysis: ^3.1.0
very_good_analysis: ^4.0.0
2 changes: 1 addition & 1 deletion examples/web_socket_counter/analysis_options.yaml
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.3.1.0.yaml
include: package:very_good_analysis/analysis_options.4.0.0.yaml
analyzer:
exclude:
- build/**
Expand Down
2 changes: 1 addition & 1 deletion examples/web_socket_counter/pubspec.yaml
Expand Up @@ -16,5 +16,5 @@ dev_dependencies:
http: ^0.13.5
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysis: ^3.1.0
very_good_analysis: ^4.0.0
web_socket_client: ^0.1.0-dev.1

0 comments on commit 644bbd5

Please sign in to comment.