Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #1110 #1111

Merged
merged 5 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
rrousselGit marked this conversation as resolved.
Show resolved Hide resolved

- fix false positive `freezed_missing_private_empty_constructor` if accessor/method/field is static
rrousselGit marked this conversation as resolved.
Show resolved Hide resolved

## 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
Loading