Migrate to pkg:lints, enable two disable lints (#38)
Cleanup changelog
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 594530d..0179038 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,12 +1,8 @@
+## 2.0.1-dev
+
## 2.0.0
* Null safety stable release.
-* See breaking changes in the `2.0.0-nullsafety` version.
-
-## 2.0.0-nullsafety
-
-* Migrate to null safety.
-* Fix outdated URLs in `README.md`.
* BREAKING: Removed archive support.
* BREAKING: `DirectoryDescriptor.load` only supports a `String` path instead of
also accepting relative `Uri` objects.
diff --git a/analysis_options.yaml b/analysis_options.yaml
index 1384ade..56bbaad 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -1,15 +1,13 @@
-include: package:pedantic/analysis_options.yaml
+include: package:lints/recommended.yaml
+
analyzer:
strong-mode:
implicit-casts: false
- errors:
- unused_element: error
- unused_import: error
- unused_local_variable: error
- dead_code: error
+
linter:
rules:
- #- annotate_overrides
+ - annotate_overrides
+ - avoid_dynamic_calls
- avoid_function_literals_in_foreach_calls
- avoid_init_to_null
- avoid_null_checks_in_equality_operators
@@ -49,7 +47,7 @@
- prefer_generic_function_type_aliases
- prefer_initializing_formals
- prefer_interpolation_to_compose_strings
- #- prefer_single_quotes
+ - prefer_single_quotes
- prefer_typing_uninitialized_variables
- slash_for_doc_comments
- test_types_in_equals
diff --git a/pubspec.yaml b/pubspec.yaml
index 8f84323..cffa641 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,10 +1,10 @@
name: test_descriptor
-version: 2.0.0
+version: 2.0.1-dev
description: An API for defining and verifying directory structures.
homepage: https://github.com/dart-lang/test_descriptor
environment:
- sdk: '>=2.12.0-0 <3.0.0'
+ sdk: '>=2.12.0 <3.0.0'
dependencies:
async: ^2.5.0
@@ -16,4 +16,4 @@
test: ^1.16.0
dev_dependencies:
- pedantic: ^1.10.0
+ lints: ^1.0.0