Skip to content

Commit c1626e1

Browse files
committed
Bump to 3.0.0, update CI
1 parent 36802f6 commit c1626e1

File tree

4 files changed

+40
-13
lines changed

4 files changed

+40
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,20 @@ jobs:
2323
run: dart analyze .
2424

2525
- name: Install DCM
26-
run: |
27-
sudo apt-get update
28-
wget -qO- https://dcm.dev/pgp-key.public | sudo gpg --dearmor -o /usr/share/keyrings/dcm.gpg
29-
echo 'deb [signed-by=/usr/share/keyrings/dcm.gpg arch=amd64] https://dcm.dev/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
30-
sudo apt-get update
31-
sudo apt-get install dcm
32-
33-
- name: DCM Analyze
34-
run: dcm analyze --reporter=github --ci-key ${{ secrets.DCM_KEY }} --email ${{ secrets.DCM_EMAIL }} --fatal-style --fatal-performance --fatal-warnings .
26+
uses: CQLabs/setup-dcm@v1.0.0
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Run DCM
31+
uses: CQLabs/dcm-action@v1.0.0
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
ci_key: ${{ secrets.DCM_KEY }}
35+
email: ${{ secrets.DCM_EMAIL }}
36+
folders: .
37+
fatal_style: true
38+
fatal_performance: true
39+
fatal_warnings: true
3540

3641
- name: Dry Publish
3742
run: dart pub publish --dry-run

CHANGELOG.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
1-
## 2.1.0
1+
## 3.0.0
22
- Adhere to DCM 1.7.0:
3-
-
3+
- Add avoid-accessing-other-classes-private-members
4+
- Add avoid-generics-shadowing
5+
- Add avoid-keywords-in-wildcard-pattern
6+
- Add avoid-misused-wildcard-pattern
7+
- Add avoid-nested-futures
8+
- Add avoid-nested-streams-and-futures
9+
- Add avoid-shadowed-extension-methods
10+
- Add avoid-uncaught-future-errors
11+
- Add avoid-unnecessary-call
12+
- Add avoid-unnecessary-futures
13+
- Add map-keys-ordering
14+
- Add no-equal-nested-conditions
15+
- Add prefer-correct-future-return-type
16+
- Add prefer-correct-stream-return-type
17+
- Add prefer-parentheses-with-if-null
18+
- Add prefer-trailing-comma
19+
- Add avoid-missing-image-alt
20+
- Add avoid-unnecessary-overrides-in-state
21+
- Add prefer-dedicated-media-query-methods
22+
- Update allow-false for no-boolean-literal-compare
23+
- Disable in tests avoid-non-ascii-symbols
24+
- Disable in tests prefer-moving-to-variable
25+
- Remove avoid-long-parameter-list
426

527
## 2.0.1
628
- Fix README logo

lib/dcm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# version 1.6.0 - https://dcm.dev/changelog/
1+
# version 1.7.0 - https://dcm.dev/changelog/
22
dart_code_metrics:
33
pubspec-rules:
44
### Pubspec

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: netglade_analysis
2-
version: 2.0.1
2+
version: 3.0.0
33
description: Lint rules for Dart and Flutter used internally at netglade.
44
repository: https://github.com/netglade/netglade_analysis
55
issue_tracker: https://github.com/netglade/netglade_analysis/issues

0 commit comments

Comments
 (0)