Merge pull request dart-lang/stack_trace#117 from dart-lang/repository_field
populate the pubspec repository field and switch to package:lints
diff --git a/pkgs/stack_trace/CHANGELOG.md b/pkgs/stack_trace/CHANGELOG.md
index 348c507..aa43004 100644
--- a/pkgs/stack_trace/CHANGELOG.md
+++ b/pkgs/stack_trace/CHANGELOG.md
@@ -1,6 +1,9 @@
## 1.11.0-dev
-* Added the param `zoneValues` to `Chain.capture` to be able to use
- custom zone values with the `runZoned` internal calls
+
+* Added the param `zoneValues` to `Chain.capture` to be able to use custom zone
+ values with the `runZoned` internal calls
+* Populate the pubspec `repository` field.
+* Switch to `package:lints`.
## 1.10.0
diff --git a/pkgs/stack_trace/README.md b/pkgs/stack_trace/README.md
index 19c6daa..a76dfc3 100644
--- a/pkgs/stack_trace/README.md
+++ b/pkgs/stack_trace/README.md
@@ -1,3 +1,7 @@
+[](https://github.com/dart-lang/stack_trace/actions/workflows/test-package.yml)
+[](https://pub.dev/packages/stack_trace)
+[](https://pub.dev/packages/stack_trace/publisher)
+
This library provides the ability to parse, inspect, and manipulate stack traces
produced by the underlying Dart implementation. It also provides functions to
produce string representations of stack traces in a more readable format than
diff --git a/pkgs/stack_trace/analysis_options.yaml b/pkgs/stack_trace/analysis_options.yaml
index 2e022f6..05c4b4c 100644
--- a/pkgs/stack_trace/analysis_options.yaml
+++ b/pkgs/stack_trace/analysis_options.yaml
@@ -1,4 +1,5 @@
-include: package:pedantic/analysis_options.yaml
+include: package:lints/recommended.yaml
+
analyzer:
strong-mode:
implicit-casts: false
diff --git a/pkgs/stack_trace/pubspec.yaml b/pkgs/stack_trace/pubspec.yaml
index 2775c0d..326e2d4 100644
--- a/pkgs/stack_trace/pubspec.yaml
+++ b/pkgs/stack_trace/pubspec.yaml
@@ -1,14 +1,14 @@
name: stack_trace
version: 1.11.0-dev
description: A package for manipulating stack traces and printing them readably.
-homepage: https://github.com/dart-lang/stack_trace
+repository: https://github.com/dart-lang/stack_trace
environment:
- sdk: ">=2.12.0-0 <3.0.0"
+ sdk: ">=2.12.0 <3.0.0"
dependencies:
path: ^1.8.0
dev_dependencies:
- pedantic: ^1.10.0-nullsafety
- test: ^1.16.0-nullsafety
+ lints: ^1.0.0
+ test: ^1.16.0
diff --git a/pkgs/stack_trace/test/chain/vm_test.dart b/pkgs/stack_trace/test/chain/vm_test.dart
index 9d82b2c..efcee3d 100644
--- a/pkgs/stack_trace/test/chain/vm_test.dart
+++ b/pkgs/stack_trace/test/chain/vm_test.dart
@@ -459,7 +459,7 @@
test('called for an unregistered stack trace uses the current chain',
() async {
- var trace;
+ late StackTrace trace;
var chain = await Chain.capture(() async {
try {
throw 'error';