Skip to content

Commit 5890417

Browse files
authored
Update dart_flutter_team_lints to depend on lints v4 (#263)
* Update dart_flutter_team_lints to depend on lints v4 * Update other SDK constraints
1 parent 9ce560b commit 5890417

File tree

17 files changed

+49
-50
lines changed

17 files changed

+49
-50
lines changed

.github/workflows/dart.yml

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/blast_repo/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A tool to bulk validate and fix GitHub repos.
44
publish_to: none
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
dependencies:
1010
args: ^2.3.1

pkgs/corpus/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A tool to calculate the API usage for a package.
44
publish_to: none
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
dependencies:
1010
analyzer: ^6.0.0

pkgs/dart_flutter_team_lints/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
## 2.1.2-wip
1+
## 3.0.0
2+
3+
- Depend on the `4.0.0` release of `package:lints` adding
4+
the `no_wildcard_variable_uses` lint.
5+
- Require Dart `3.1.0` or later.
26

37
## 2.1.1
48

pkgs/dart_flutter_team_lints/lib/analysis_options.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ linter:
2525
# consistency
2626
- combinators_ordering
2727
- directives_ordering
28-
- library_annotations
2928
- lines_longer_than_80_chars
3029
- omit_local_variable_types
3130
- prefer_asserts_in_initializer_lists

pkgs/dart_flutter_team_lints/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: dart_flutter_team_lints
22
description: An analysis rule set used by the Dart and Flutter teams.
3-
version: 2.1.2-wip
3+
version: 3.0.0
44
repository: https://github.com/dart-lang/ecosystem/tree/main/pkgs/dart_flutter_team_lints
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
dependencies:
10-
lints: ^3.0.0
10+
lints: ^4.0.0
1111

1212
dev_dependencies:
1313
checks: ^0.3.0

pkgs/firehose/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 0.9.0
44
repository: https://github.com/dart-lang/ecosystem/tree/main/pkgs/firehose
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
executables:
1010
firehose: firehose

pkgs/firehose/test_data/base_test_repo/pkgs/package1/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 1.0.0
44
# repository: https://github.com/my_org/my_repo
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
# Add regular dependencies here.
1010
dependencies:

pkgs/firehose/test_data/base_test_repo/pkgs/package2/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 1.0.0
44
# repository: https://github.com/my_org/my_repo
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
# Add regular dependencies here.
1010
dependencies:

pkgs/firehose/test_data/base_test_repo/pkgs/package3/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 1.0.0
44
# repository: https://github.com/my_org/my_repo
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
# Add regular dependencies here.
1010
dependencies:

pkgs/firehose/test_data/base_test_repo/pkgs/package5/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 1.0.0
44
# repository: https://github.com/my_org/my_repo
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
# Add regular dependencies here.
1010
dependencies:

pkgs/firehose/test_data/test_repo/pkgs/package1/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 1.0.0
44
# repository: https://github.com/my_org/my_repo
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
# Add regular dependencies here.
1010
dependencies:

pkgs/firehose/test_data/test_repo/pkgs/package2/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 1.0.0
44
# repository: https://github.com/my_org/my_repo
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
# Add regular dependencies here.
1010
dependencies:

pkgs/firehose/test_data/test_repo/pkgs/package3/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 1.0.0
44
# repository: https://github.com/my_org/my_repo
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
# Add regular dependencies here.
1010
dependencies:

pkgs/firehose/test_data/test_repo/pkgs/package5/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 1.2.0
44
# repository: https://github.com/my_org/my_repo
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
# Add regular dependencies here.
1010
dependencies:

pkgs/repo_manage/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Miscellaneous issue, repo, and PR query tools.
44
publish_to: none
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.1.0
88

99
dependencies:
1010
args: ^2.4.0

tool/ci.sh

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/bash
2-
# Created with package:mono_repo v6.6.0
2+
# Created with package:mono_repo v6.6.1
33

44
# Support built in commands on windows out of the box.
5+
56
# When it is a flutter repo (check the pubspec.yaml for "sdk: flutter")
6-
# then "flutter" is called instead of "pub".
7+
# then "flutter pub" is called instead of "dart pub".
78
# This assumes that the Flutter SDK has been installed in a previous step.
89
function pub() {
910
if grep -Fq "sdk: flutter" "${PWD}/pubspec.yaml"; then
@@ -12,18 +13,13 @@ function pub() {
1213
command dart pub "$@"
1314
fi
1415
}
15-
# When it is a flutter repo (check the pubspec.yaml for "sdk: flutter")
16-
# then "flutter" is called instead of "pub".
17-
# This assumes that the Flutter SDK has been installed in a previous step.
16+
1817
function format() {
19-
if grep -Fq "sdk: flutter" "${PWD}/pubspec.yaml"; then
20-
command flutter format "$@"
21-
else
22-
command dart format "$@"
23-
fi
18+
command dart format "$@"
2419
}
20+
2521
# When it is a flutter repo (check the pubspec.yaml for "sdk: flutter")
26-
# then "flutter" is called instead of "pub".
22+
# then "flutter analyze" is called instead of "dart analyze".
2723
# This assumes that the Flutter SDK has been installed in a previous step.
2824
function analyze() {
2925
if grep -Fq "sdk: flutter" "${PWD}/pubspec.yaml"; then

0 commit comments

Comments
 (0)