Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit d782973

Browse files
committed
fix: unit test
1 parent 9d4c298 commit d782973

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* fix: cover more cases in [`prefer-immediate-return`](https://dartcodemetrics.dev/docs/rules/common/prefer-immediate-return) rule
88
* fix: support index expressions for [`no-magic-number`](https://dartcodemetrics.dev/docs/rules/common/no-magic-number) rule.
99
* fix: correctly split exclude path
10-
* chore: restrict `analyzer` version to `>=2.4.0 <3.5.0`.
10+
* chore: restrict `analyzer` version to `>=2.4.0 <3.4.0`.
1111
* fix: correctly handle nullable types of collections for [`avoid-collection-methods-with-unrelated-types`](https://dartcodemetrics.dev/docs/rules/common/avoid-collection-methods-with-unrelated-types)
1212

1313
## 4.13.0

lib/src/utils/exclude_utils.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ Iterable<Glob> prepareExcludes(
1616
Glob(p.normalize(p.join(root, exclude)).replaceAll(r'\', '/')))
1717
.toList();
1818

19-
Iterable<String> extractExcludes(String excludePath) =>
20-
excludePath.split(',').map((path) => path.trim());
19+
Iterable<String> extractExcludes(String excludePath) => excludePath.isNotEmpty
20+
? excludePath.split(',').map((path) => path.trim())
21+
: [];

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ environment:
1010
sdk: ">=2.14.0 <3.0.0"
1111

1212
dependencies:
13-
analyzer: ">=2.4.0 <3.5.0"
13+
analyzer: ">=2.4.0 <3.4.0"
1414
analyzer_plugin: ">=0.8.0 <0.10.0"
1515
ansicolor: ^2.0.1
1616
args: ^2.0.0

0 commit comments

Comments
 (0)