Update SDK constraint, enable/fix lints (dart-lang/pubspec_parse#43)
diff --git a/pkgs/pubspec_parse/.travis.yml b/pkgs/pubspec_parse/.travis.yml index b82f2f3..536ccee 100644 --- a/pkgs/pubspec_parse/.travis.yml +++ b/pkgs/pubspec_parse/.travis.yml
@@ -13,7 +13,7 @@ - dart: dev dart_task: dartanalyzer: --fatal-infos --fatal-warnings . - - dart: 2.0.0 + - dart: 2.2.0 dart_task: dartanalyzer: --fatal-warnings .
diff --git a/pkgs/pubspec_parse/CHANGELOG.md b/pkgs/pubspec_parse/CHANGELOG.md index d432649..1f62e3a 100644 --- a/pkgs/pubspec_parse/CHANGELOG.md +++ b/pkgs/pubspec_parse/CHANGELOG.md
@@ -1,3 +1,7 @@ +## 0.1.5 + +- Update SDK requirement to `>=2.2.0 <3.0.0`. + ## 0.1.4 - Added `lenient` named argument to `Pubspec.fromJson` to ignore format and type errors.
diff --git a/pkgs/pubspec_parse/analysis_options.yaml b/pkgs/pubspec_parse/analysis_options.yaml index 4f0a48b..f983bb3 100644 --- a/pkgs/pubspec_parse/analysis_options.yaml +++ b/pkgs/pubspec_parse/analysis_options.yaml
@@ -61,14 +61,14 @@ - package_names - package_prefixed_library_names - prefer_adjacent_string_concatenation - # TODO: reenable this once we want to pin the SDK to >=2.2.0 - # - prefer_collection_literals + - prefer_collection_literals - prefer_conditional_assignment - prefer_const_constructors - prefer_contains - prefer_equal_for_default_values - prefer_final_fields - prefer_final_locals + - prefer_generic_function_type_aliases - prefer_initializing_formals - prefer_interpolation_to_compose_strings - prefer_is_empty
diff --git a/pkgs/pubspec_parse/lib/src/pubspec.dart b/pkgs/pubspec_parse/lib/src/pubspec.dart index c05e824..3d542d7 100644 --- a/pkgs/pubspec_parse/lib/src/pubspec.dart +++ b/pkgs/pubspec_parse/lib/src/pubspec.dart
@@ -166,7 +166,7 @@ } static List<String> _normalizeAuthors(String author, List<String> authors) { - final value = Set<String>(); + final value = <String>{}; if (author != null) { value.add(author); }
diff --git a/pkgs/pubspec_parse/pubspec.yaml b/pkgs/pubspec_parse/pubspec.yaml index 0b48262..c1df008 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.4 +version: 0.1.5-dev homepage: https://github.com/dart-lang/pubspec_parse author: Dart Team <misc@dartlang.org> environment: - sdk: '>=2.0.0 <3.0.0' + sdk: '>=2.2.0 <3.0.0' dependencies: # Verified that no new features since 1.0.0 are used - be careful!