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

Freezed Lint reports unneeded private empty constructor #1110

Closed
snapsl opened this issue Jul 15, 2024 · 0 comments
Closed

Freezed Lint reports unneeded private empty constructor #1110

snapsl opened this issue Jul 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@snapsl
Copy link

snapsl commented Jul 15, 2024

Describe the bug
Freezed Lint reports to create an private empty constructor when a static class method or variable is added.

To Reproduce

@freezed
class Example with _$Example {
  static const int a = 0; // <- causes lint rule to trigger

  static String b = 0.toString(); // <- causes lint rule to trigger

  static int c() => 0; // <- causes lint rule to trigger

  const factory Example({
    required String e,
  }) = _Example;
}

Expected behavior
Lint rule should not apply.

@snapsl snapsl added bug Something isn't working needs triage labels Jul 15, 2024
@snapsl snapsl changed the title Freezed Lint reports uneeded private empty constructor Freezed Lint reports unneeded private empty constructor Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants