Skip to content

Commit 9c21b9e

Browse files
committed
Add changelog
1 parent ce13eff commit 9c21b9e

File tree

5 files changed

+105
-10
lines changed

5 files changed

+105
-10
lines changed

CHANGELOG.md

Lines changed: 100 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,103 @@
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-returning-conditional-expressions
71+
- prefer-simpler-patterns-null-check
72+
- prefer-test-matchers
73+
- prefer-visible-for-testing-on-members
74+
- prefer-wildcard-pattern
75+
- unnecessary-trailing-comma
76+
- add-copy-with
77+
- avoid-empty-setstate
78+
- avoid-expanded-as-spacer
79+
- avoid-incomplete-copy-with
80+
- avoid-inherited-widget-in-initstate
81+
- avoid-late-context
82+
- avoid-state-constructors
83+
- avoid-stateless-widget-initialized-fields
84+
- avoid-unnecessary-stateful-widgets
85+
- dispose-fields
86+
- prefer-action-button-tooltip
87+
- prefer-define-hero-tag
88+
- proper-super-calls
89+
- use-setstate-synchronously
90+
- avoid-instantiating-in-value-provider
91+
- avoid-read-inside-build
92+
- avoid-watch-outside-build
93+
- dispose-providers
94+
- prefer-multi-provider
95+
- avoid-bloc-public-methods
96+
- check-is-not-closed-after-async-gap
97+
- prefer-correct-bloc-provider
98+
- prefer-multi-bloc-provider
99+
- extend-equatable
100+
- list-all-equatable-fields
3101

4102
## 1.2.3
5103
- 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: 3 additions & 2 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

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)