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

New check: Warning on val class properties assigned to null #334

Open
ZacSweers opened this issue Nov 11, 2024 · 4 comments
Open

New check: Warning on val class properties assigned to null #334

ZacSweers opened this issue Nov 11, 2024 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ZacSweers
Copy link
Collaborator

This code serves no real purpose most of the time, as they can never be changed and might as well just pass null directly

val foo: String? = null
@ZacSweers ZacSweers added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Nov 11, 2024
@alguiguilo098
Copy link

@ZacSweers hi, i want this issue.

@ZacSweers
Copy link
Collaborator Author

are you voting for it or offering to send a PR?

@alguiguilo098
Copy link

alguiguilo098 commented Nov 16, 2024

@ZacSweers I'm offering to send a PR

@ZacSweers
Copy link
Collaborator Author

Sounds good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants