Skip to content

Commit ce498d3

Browse files
authored
Merge pull request #10 from netglade/release-2.0.0
Release 2.0.0
2 parents ce13eff + 404d7d4 commit ce498d3

File tree

6 files changed

+106
-12
lines changed

6 files changed

+106
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
sudo apt-get install dcm
3232
3333
- name: DCM Analyze
34-
run: dcm analyze --reporter=github --ci-key ${{ secrets.DCM_KEY }} --email ${{ secrets.DCM_EMAIL }} .
34+
run: dcm analyze --reporter=github --ci-key ${{ secrets.DCM_KEY }} --email ${{ secrets.DCM_EMAIL }} --fatal-style --fatal-performance --fatal-warnings .
3535

3636
- name: Dry Publish
3737
run: dart pub publish --dry-run

CHANGELOG.md

Lines changed: 99 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,102 @@
1-
## 2.0.0-rc.1
2-
- Update DCM rules to adhere DCM Teams 1.6.0.
1+
## 2.0.0
2+
- New Dart lints:
3+
- collection_methods_unrelated_type
4+
- deprecated_member_use_from_same_package
5+
- implicit_reopen
6+
- invalid_case_patterns
7+
- unnecessary_library_directive
8+
- combinators_ordering
9+
- dangling_library_doc_comments
10+
- implicit_call_tearoffs
11+
- matching_super_parameters
12+
- no_literal_bool_comparisons
13+
- type_literal_in_constant_pattern
14+
- unnecessary_breaks
15+
- use_string_in_part_of_directives
16+
- Update DCM rules and CI to adhere DCM Teams 1.6.0.
17+
- New DCM lints:
18+
- avoid-any-version
19+
- banned-dependencies
20+
- prefer-caret-version-syntax
21+
- prefer-correct-screenshots
22+
- prefer-publish-to-none
23+
- prefer-semver-version
24+
- avoid-bottom-type-in-patterns
25+
- avoid-bottom-type-in-records
26+
- avoid-collapsible-if
27+
- avoid-declaring-call-method
28+
- avoid-duplicate-named-imports
29+
- avoid-duplicate-patterns
30+
- avoid-equal-expressions
31+
- avoid-explicit-pattern-field-name
32+
- avoid-function-type-in-records
33+
- avoid-future-tostring
34+
- avoid-inverted-boolean-checks
35+
- avoid-long-records
36+
- avoid-missed-calls
37+
- avoid-mixing-named-and-positional-fields
38+
- avoid-nested-records
39+
- avoid-nested-switch-expressions
40+
- avoid-nested-switches
41+
- avoid-one-field-records
42+
- avoid-positional-record-field-access
43+
- avoid-redundant-else
44+
- avoid-redundant-positional-field-name
45+
- avoid-redundant-pragma-inline
46+
- avoid-self-assignment
47+
- avoid-self-compare
48+
- avoid-shadowing
49+
- avoid-substring
50+
- avoid-throw-objects-without-tostring
51+
- avoid-unassigned-late-fields-keyword
52+
- avoid-unnecessary-conditionals
53+
- avoid-unnecessary-negations
54+
- avoid-unnecessary-nullable-return-type
55+
- avoid-unnecessary-return
56+
- avoid-unrelated-type-casts
57+
- avoid-unsafe-collection-methods
58+
- avoid-unused-generics
59+
- function-always-returns-null
60+
- move-records-to-typedefs
61+
- no-equal-conditions
62+
- no-equal-switch-case
63+
- no-equal-switch-expression-cases
64+
- prefer-bytes-builder
65+
- prefer-correct-switch-length
66+
- prefer-declaring-const-constructor
67+
- prefer-early-return
68+
- prefer-explicit-parameter-names
69+
- prefer-return-await
70+
- prefer-simpler-patterns-null-check
71+
- prefer-test-matchers
72+
- prefer-visible-for-testing-on-members
73+
- prefer-wildcard-pattern
74+
- unnecessary-trailing-comma
75+
- add-copy-with
76+
- avoid-empty-setstate
77+
- avoid-expanded-as-spacer
78+
- avoid-incomplete-copy-with
79+
- avoid-inherited-widget-in-initstate
80+
- avoid-late-context
81+
- avoid-state-constructors
82+
- avoid-stateless-widget-initialized-fields
83+
- avoid-unnecessary-stateful-widgets
84+
- dispose-fields
85+
- prefer-action-button-tooltip
86+
- prefer-define-hero-tag
87+
- proper-super-calls
88+
- use-setstate-synchronously
89+
- avoid-instantiating-in-value-provider
90+
- avoid-read-inside-build
91+
- avoid-watch-outside-build
92+
- dispose-providers
93+
- prefer-multi-provider
94+
- avoid-bloc-public-methods
95+
- check-is-not-closed-after-async-gap
96+
- prefer-correct-bloc-provider
97+
- prefer-multi-bloc-provider
98+
- extend-equatable
99+
- list-all-equatable-fields
3100

4101
## 1.2.3
5102
- Fix pub dev icon.

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<a href="https://github.com/netglade">
2-
<picture >
3-
<source media="(prefers-color-scheme: dark)" height='120px' srcset="https://raw.githubusercontent.com/netglade/netglade_analysis/main/doc/badge_light.png">
4-
<source media="(prefers-color-scheme: light)" height='120px' srcset="https://raw.githubusercontent.com/netglade/netglade_analysis/main/doc/badge_dark.png">
52
<img alt="netglade" height='120px' src="https://raw.githubusercontent.com/netglade/netglade_analysis/main/doc/badge_dark.png">
6-
</picture>
73
</a>
84

95
Developed with 💚 by [netglade][netglade_link]

lib/dcm.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# version 1.6.0
1+
# version 1.6.0 - https://dcm.dev/changelog/
22
dart_code_metrics:
33
pubspec-rules:
44
### Pubspec
@@ -38,7 +38,8 @@ dart_code_metrics:
3838
- avoid-inverted-boolean-checks
3939
# - avoid-late-keyword
4040
# - avoid-long-functions # way too pedantic
41-
# - avoid-long-parameter-list # doesn't play well with Flutter
41+
- avoid-long-parameter-list:
42+
ignore-optional: true # exclude optional and (required) named parameters
4243
- avoid-long-records
4344
- avoid-missed-calls
4445
- avoid-missing-enum-constant-in-map
@@ -163,7 +164,7 @@ dart_code_metrics:
163164
- prefer-moving-to-variable:
164165
allowed-duplicated-chains: 3
165166
- prefer-return-await
166-
- prefer-returning-conditional-expressions
167+
# - prefer-returning-conditional-expressions # annoying sometimes
167168
- prefer-simpler-patterns-null-check
168169
- prefer-static-class:
169170
ignore-private: true

lib/lints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ analyzer:
1616
deprecated_member_use_from_same_package: warning
1717
record_literal_one_positional_no_trailing_comma: error
1818

19-
# version 1.3.5 - https://github.com/dart-lang/linter/blob/main/CHANGELOG.md
19+
# version 1.35.0 - https://github.com/dart-lang/linter/blob/main/CHANGELOG.md
2020
linter:
2121
rules:
2222
### ERROR

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.0-rc.1
2+
version: 2.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)