Skip to content

Commit

Permalink
fix #1110
Browse files Browse the repository at this point in the history
- add custom_lint.log to .gitignore
- fix MissingPrivateEmptyCtor
- add test-case inside example
- prepare version 0.0.6 & CHANGELOG
  • Loading branch information
SunlightBro committed Jul 16, 2024
1 parent 4f7c141 commit 29c1766
Show file tree
Hide file tree
Showing 6 changed files with 220 additions and 88 deletions.
3 changes: 2 additions & 1 deletion packages/freezed_lint/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.dart_tool
.packages
# Remove the following pattern if you wish to check in your lock file
pubspec.lock
pubspec.lock
custom_lint.log
4 changes: 4 additions & 0 deletions packages/freezed_lint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.6 - 2024-07-16

- fix false positive `freezed_missing_private_empty_constructor` if accessor/method/field is static

## 0.0.5 - 2024-07-15

- `freezed_annotation` upgraded to `2.4.4`
Expand Down
11 changes: 11 additions & 0 deletions packages/freezed_lint/example/lib/missing_private_empty_ctor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,14 @@ class ExtendsIdClass extends IdClass with _$ExtendsIdClass {
@override
int get id => id;
}

@freezed
class WithStaticElements with _$WithStaticElements {
static String field = 'field';

static String get accessor => 'accessor';

static String method() => 'method';

const factory WithStaticElements() = _WithStaticElements;
}
Loading

0 comments on commit 29c1766

Please sign in to comment.