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

Commit 7e37e37

Browse files
feat: migrate to new analyzer plugins API (#900)
* feat: migrate to new analyzer plugins API * chore: fix analyzer issues * chore: fix analyzer issues * chore: changed min SDK version to 2.15.0 * chore: actualize disabled lint rules * 2.15.0 * 2.17.0 * chore: actualize deps * chore: reformat code Co-authored-by: Dmitry Krutskikh <[email protected]>
1 parent 8b0db31 commit 7e37e37

File tree

22 files changed

+178
-341
lines changed

22 files changed

+178
-341
lines changed

.github/workflows/package_analyze.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -130,31 +130,21 @@ jobs:
130130
runs-on: ubuntu-latest
131131

132132
steps:
133-
- name: Install Dart 2.14.0
133+
- name: Install Dart 2.17.0
134134
uses: dart-lang/setup-dart@v1
135135
with:
136-
sdk: "2.14.0"
136+
sdk: "2.17.0"
137137

138138
- name: Checkout
139139
uses: actions/checkout@v3
140140

141141
- name: Install dependencies
142142
run: dart pub downgrade
143143

144-
- name: Disable unsupported rules
145-
run: |
146-
sed -i'.original' 's/- avoid_final_parameters/# - avoid_final_parameters/g' analysis_options.yaml
147-
sed -i'.original' 's/- conditional_uri_does_not_exist/# - conditional_uri_does_not_exist/g' analysis_options.yaml
148-
sed -i'.original' 's/- no_leading_underscores_for_library_prefixes/# - no_leading_underscores_for_library_prefixes/g' analysis_options.yaml
149-
sed -i'.original' 's/- no_leading_underscores_for_local_identifiers/# - no_leading_underscores_for_local_identifiers/g' analysis_options.yaml
150-
sed -i'.original' 's/- secure_pubspec_urls/# - secure_pubspec_urls/g' analysis_options.yaml
151-
sed -i'.original' 's/- unnecessary_constructor_name/# - unnecessary_constructor_name/g' analysis_options.yaml
152-
sed -i'.original' 's/- unnecessary_late/# - unnecessary_late/g' analysis_options.yaml
153-
154144
- name: Check compatibility
155145
run: |
156146
dart analyze --fatal-warnings --fatal-infos .
157-
dart test
147+
dart test --reporter=github
158148
159149
check-beta-dart-compatibility:
160150
needs: analysis

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
## Unreleased
44

55
* feat: add static code diagnostic [`avoid-use-expanded-as-spacer`](https://dartcodemetrics.dev/docs/rules/flutter/avoid-use-expanded-as-spacer).
6-
* chore: restrict `analyzer` version to `>=2.7.0 <4.3.0`.
6+
* feat: migrate to new analyzer plugins API.
7+
* chore: changed min `SDK` version to `2.17.0`.
8+
* chore: restrict `analyzer` version to `>=4.1.0 <4.3.0`.
9+
* chore: restrict `analyzer_plugin` version to `>=0.11.0 <0.12.0`.
710

811
## 4.16.0
912

0 commit comments

Comments
 (0)