Update to dart_flutter_team_lints, also cleaned up markdown (dart-lang/glob#71) Require Dart 2.18
diff --git a/pkgs/glob/.github/workflows/test-package.yml b/pkgs/glob/.github/workflows/test-package.yml index c051e94..d936950 100644 --- a/pkgs/glob/.github/workflows/test-package.yml +++ b/pkgs/glob/.github/workflows/test-package.yml
@@ -49,7 +49,7 @@ matrix: # Add macos-latest and/or windows-latest if relevant for this package. os: [ubuntu-latest] - sdk: [2.15.0, dev] + sdk: [2.18.0, dev] steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c - uses: dart-lang/setup-dart@a57a6c04cf7d4840e88432aad6281d1e125f0d46
diff --git a/pkgs/glob/CHANGELOG.md b/pkgs/glob/CHANGELOG.md index adbf55e..c699188 100644 --- a/pkgs/glob/CHANGELOG.md +++ b/pkgs/glob/CHANGELOG.md
@@ -1,28 +1,28 @@ +## 2.1.2-dev + +- Require Dart 2.18 + ## 2.1.1 -* Updated the dependency on `package:file` to require at least `6.1.3`. +- Updated the dependency on `package:file` to require at least `6.1.3`. ## 2.1.0 -* Return empty results instead of throwing when trying to list a path that does +- Return empty results instead of throwing when trying to list a path that does not exist. ## 2.0.2 -* Drop package:pedantic dependency, use package:lints instead. -* Update SDK lower bound to `2.15.0` +- Drop package:pedantic dependency, use package:lints instead. +- Update SDK lower bound to `2.15.0` ## 2.0.1 -* Update example in README for new import. +- Update example in README for new import. ## 2.0.0 -* Stable null safety release. - -## 2.0.0-nullsafety.0 - -* Migrate to null_safety +- Stable null safety release. ### Breaking Change @@ -35,46 +35,46 @@ ## 1.2.1 -* Add an empty list_local_fs.dart to ease upgrade from 1x to 2x +- Add an empty list_local_fs.dart to ease upgrade from 1x to 2x ## 1.2.0 -* Support running on Node.js. +- Support running on Node.js. ## 1.1.7 -* Set max SDK version to `<3.0.0`, and adjust other dependencies. +- Set max SDK version to `<3.0.0`, and adjust other dependencies. ## 1.1.6 -* Improve support for Dart 2 runtime semantics. +- Improve support for Dart 2 runtime semantics. ## 1.1.5 -* Declare support for `async` 2.0.0. +- Declare support for `async` 2.0.0. -* Require Dart 1.23.0. +- Require Dart 1.23.0. ## 1.1.4 -* Throw an exception when listing globs whose initial paths don't exist in +- Throw an exception when listing globs whose initial paths don't exist in case-insensitive mode. This matches the case-sensitive behavior. ## 1.1.3 -* Support `string_scanner` 1.0.0. +- Support `string_scanner` 1.0.0. ## 1.1.2 -* Fix all strong mode errors and warnings. +- Fix all strong mode errors and warnings. ## 1.1.1 -* Fix a bug where listing an absolute glob with `caseInsensitive: false` failed. +- Fix a bug where listing an absolute glob with `caseInsensitive: false` failed. ## 1.1.0 -* Add a `caseSensitive` named parameter to `new Glob()` that controls whether +- Add a `caseSensitive` named parameter to `new Glob()` that controls whether the glob is case-sensitive. This defaults to `false` on Windows and `true` elsewhere. @@ -84,26 +84,26 @@ ## 1.0.5 -* Narrow the dependency on `path`. Previously, this allowed versions that didn't +- Narrow the dependency on `path`. Previously, this allowed versions that didn't support all the functionality this package needs. -* Upgrade to the new test runner. +- Upgrade to the new test runner. ## 1.0.4 -* Added overlooked `collection` dependency. +- Added overlooked `collection` dependency. ## 1.0.3 -* Fix a bug where `Glob.list()` and `Glob.listSync()` would incorrectly throw +- Fix a bug where `Glob.list()` and `Glob.listSync()` would incorrectly throw exceptions when a directory didn't exist on the filesystem. ## 1.0.2 -* Fixed `Glob.list()` on Windows. +- Fixed `Glob.list()` on Windows. ## 1.0.1 -* Fix several analyzer warnings. +- Fix several analyzer warnings. -* Fix the tests on Windows. +- Fix the tests on Windows.
diff --git a/pkgs/glob/README.md b/pkgs/glob/README.md index a560fb2..ef6a745 100644 --- a/pkgs/glob/README.md +++ b/pkgs/glob/README.md
@@ -10,9 +10,9 @@ ## Usage -To construct a glob, just use `Glob()`. As with `RegExp`s, it's a good idea -to keep around a glob if you'll be using it more than once so that it doesn't -have to be compiled over and over. You can check whether a path matches the glob +To construct a glob, just use `Glob()`. As with `RegExp`s, it's a good idea to +keep around a glob if you'll be using it more than once so that it doesn't have +to be compiled over and over. You can check whether a path matches the glob using `Glob.matches()`: ```dart @@ -98,7 +98,7 @@ but not `test-.dart`. If it starts with `^` or `!`, the construction will instead match all characters -*not* mentioned. For example, `test[^a-z].dart` will match `test1.dart` but not +_not_ mentioned. For example, `test[^a-z].dart` will match `test1.dart` but not `testa.dart`. This construction never matches `/`.
diff --git a/pkgs/glob/analysis_options.yaml b/pkgs/glob/analysis_options.yaml index be8060d..d802d72 100644 --- a/pkgs/glob/analysis_options.yaml +++ b/pkgs/glob/analysis_options.yaml
@@ -1,4 +1,4 @@ -include: package:lints/recommended.yaml +include: package:dart_flutter_team_lints/analysis_options.yaml analyzer: language: @@ -6,42 +6,8 @@ linter: rules: - - avoid_empty_else - - avoid_init_to_null - - avoid_null_checks_in_equality_operators - avoid_unused_constructor_parameters - - await_only_futures - - camel_case_types - cancel_subscriptions - - constant_identifier_names - - control_flow_in_finally - - depend_on_referenced_packages - - directives_ordering - - empty_catches - - empty_constructor_bodies - - empty_statements - - hash_and_equals - - implementation_imports - - iterable_contains_unrelated_type - - library_names - - library_prefixes - - list_remove_unrelated_type - - non_constant_identifier_names - - overridden_fields - package_api_docs - - package_names - - package_prefixed_library_names - - prefer_conditional_assignment - - prefer_equal_for_default_values - - prefer_final_fields - - prefer_generic_function_type_aliases - - prefer_is_not_empty - - slash_for_doc_comments - test_types_in_equals - - throw_in_finally - - type_init_formals - - unnecessary_brace_in_string_interps - - unnecessary_const - - unnecessary_new - - unrelated_type_equality_checks - - valid_regexps + - use_super_parameters
diff --git a/pkgs/glob/lib/src/utils.dart b/pkgs/glob/lib/src/utils.dart index 74a809c..c02c513 100644 --- a/pkgs/glob/lib/src/utils.dart +++ b/pkgs/glob/lib/src/utils.dart
@@ -58,7 +58,7 @@ @override List<String> groups(List<int> groupIndices) => - groupIndices.map((index) => group(index)).toList(); + groupIndices.map(group).toList(); } final _quote = RegExp(r'[+*?{}|[\]\\().^$-]');
diff --git a/pkgs/glob/pubspec.yaml b/pkgs/glob/pubspec.yaml index 77b7904..f1ac355 100644 --- a/pkgs/glob/pubspec.yaml +++ b/pkgs/glob/pubspec.yaml
@@ -1,10 +1,10 @@ name: glob -version: 2.1.1 +version: 2.1.2-dev description: A library to perform Bash-style file and directory globbing. repository: https://github.com/dart-lang/glob environment: - sdk: '>=2.15.0 <3.0.0' + sdk: '>=2.18.0 <3.0.0' dependencies: async: ^2.5.0 @@ -14,6 +14,6 @@ string_scanner: ^1.1.0 dev_dependencies: - lints: ^1.0.0 + dart_flutter_team_lints: ^0.1.0 test: ^1.17.0 test_descriptor: ^2.0.0