Fix test related to latest version of source_span (dart-lang/pubspec_parse#55)
Bump min SDK to ensure tested SDKs support latest source_span
Cleanup analysis_options.yaml
diff --git a/pkgs/pubspec_parse/.travis.yml b/pkgs/pubspec_parse/.travis.yml
index ccb1caf..66bff3d 100644
--- a/pkgs/pubspec_parse/.travis.yml
+++ b/pkgs/pubspec_parse/.travis.yml
@@ -1,7 +1,7 @@
language: dart
dart:
- - 2.2.0
+ - 2.6.0
- dev
dart_task:
@@ -16,7 +16,7 @@
- dart: dev
dart_task:
dartanalyzer: --fatal-infos --fatal-warnings .
- - dart: 2.2.0
+ - dart: 2.6.0
dart_task:
dartanalyzer: --fatal-warnings .
diff --git a/pkgs/pubspec_parse/CHANGELOG.md b/pkgs/pubspec_parse/CHANGELOG.md
index f2c2542..df5c0e8 100644
--- a/pkgs/pubspec_parse/CHANGELOG.md
+++ b/pkgs/pubspec_parse/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.1.6-dev
+
+- Update SDK requirement to `>=2.6.0 <3.0.0`.
+
## 0.1.5
- Update SDK requirement to `>=2.2.0 <3.0.0`.
diff --git a/pkgs/pubspec_parse/analysis_options.yaml b/pkgs/pubspec_parse/analysis_options.yaml
index f983bb3..649460a 100644
--- a/pkgs/pubspec_parse/analysis_options.yaml
+++ b/pkgs/pubspec_parse/analysis_options.yaml
@@ -1,13 +1,9 @@
include: package:pedantic/analysis_options.yaml
+
analyzer:
strong-mode:
implicit-casts: false
- errors:
- dead_code: error
- override_on_non_overriding_method: error
- unused_element: error
- unused_import: error
- unused_local_variable: error
+
linter:
rules:
- always_declare_return_types
diff --git a/pkgs/pubspec_parse/pubspec.yaml b/pkgs/pubspec_parse/pubspec.yaml
index fc54d12..7856305 100644
--- a/pkgs/pubspec_parse/pubspec.yaml
+++ b/pkgs/pubspec_parse/pubspec.yaml
@@ -2,12 +2,12 @@
description: >-
Simple package for parsing pubspec.yaml files with a type-safe API and rich
error reporting.
-version: 0.1.5
+version: 0.1.6-dev
homepage: https://github.com/dart-lang/pubspec_parse
author: Dart Team <misc@dartlang.org>
environment:
- sdk: '>=2.2.0 <3.0.0'
+ sdk: '>=2.6.0 <3.0.0'
dependencies:
checked_yaml: ^1.0.0
diff --git a/pkgs/pubspec_parse/test/dependency_test.dart b/pkgs/pubspec_parse/test/dependency_test.dart
index d3bf3ad..35ac6b6 100644
--- a/pkgs/pubspec_parse/test/dependency_test.dart
+++ b/pkgs/pubspec_parse/test/dependency_test.dart
@@ -139,10 +139,10 @@
'not_supported': null
}, r'''
line 10, column 4: Unrecognized keys: [not_supported]; supported keys: [sdk, git, path, hosted]
- ╷
-10│ "not_supported": null
- │ ^^^^^^^^^^^^^^^
- ╵''');
+ ╷
+10 │ "not_supported": null
+ │ ^^^^^^^^^^^^^^^
+ ╵''');
});
test('map w/ version and hosted as String', () {