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

Commit 1719595

Browse files
authored
Merge branch 'master' into avoid-shrink-wrap-in-lists
2 parents 3e3ff01 + 9fd3b58 commit 1719595

File tree

53 files changed

+1101
-690
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1101
-690
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

.github/workflows/website_check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3.4.0
17+
- uses: actions/setup-node@v3.4.1
1818
with:
1919
node-version: "16"
2020
- name: Test Build

.github/workflows/website_deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3.4.0
17+
- uses: actions/setup-node@v3.4.1
1818
with:
1919
node-version: "16"
2020
- name: Deploy to GitHub Pages

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@
22

33
## Unreleased
44

5-
* 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`.
5+
* feat: add static code diagnostic [`avoid-duplicate-exports`](https://dartcodemetrics.dev/docs/rules/common/avoid-duplicate-exports).
76
* feat: add static code diagnostic [`avoid-shrink-wrap-in-lists`](https://dartcodemetrics.dev/docs/rules/flutter/avoid-shrink-wrap-in-lists).
7+
* feat: add static code diagnostic [`avoid-top-level-members-in-tests`](https://dartcodemetrics.dev/docs/rules/common/avoid-top-level-members-in-tests).
8+
* feat: add static code diagnostic [`prefer-enums-by-name`](https://dartcodemetrics.dev/docs/rules/common/prefer-enums-by-name).
9+
10+
## 4.17.0-dev.1
11+
12+
* feat: add static code diagnostic [`avoid-use-expanded-as-spacer`](https://dartcodemetrics.dev/docs/rules/flutter/avoid-use-expanded-as-spacer).
13+
* feat: migrate to new analyzer plugins API.
14+
* chore: changed min `SDK` version to `2.17.0`.
15+
* chore: restrict `analyzer` version to `>=4.1.0 <4.3.0`.
16+
* chore: restrict `analyzer_plugin` version to `>=0.11.0 <0.12.0`.
817

918
## 4.16.0
1019

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ To set this up:
8989
```yaml
9090
name: dart_code_metrics_plugin_loader
9191
description: This pubspec determines the version of the analyzer plugin to load.
92-
version: 4.16.0
92+
version: 4.17.0-dev.1
9393
9494
environment:
9595
sdk: ">=2.14.0 <3.0.0"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ add it manually to `pubspec.yaml`
5959

6060
```yaml
6161
dev_dependencies:
62-
dart_code_metrics: ^4.16.0
62+
dart_code_metrics: ^4.17.0-dev.1
6363
```
6464
6565
and then run

bitbucket-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: google/dart
1+
image: dart
22

33
pipelines:
44
default:

0 commit comments

Comments
 (0)