-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Nullability Annotations to Java Classes] Update wordPressLintVersion
to 2.0.0
#19434
Conversation
Release Notes: https://github.com/wordpress-mobile/ WordPress-Lint-Android/releases/tag/2.0.0
Generated by 🚫 dangerJS |
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
Thanks
…On Tue, Oct 24, 2023, 6:27 PM peril-wordpress-mobile[bot] < ***@***.***> wrote:
Warnings
|
<issue id="MissingNullAnnotationOnField"> | ||
<ignore path="**/generated/**" /> | ||
</issue> | ||
<issue id="MissingNullAnnotationOnConstructorParameter"> | ||
<ignore path="**/generated/**" /> | ||
</issue> | ||
<issue id="MissingNullAnnotationOnMethodParameter"> | ||
<ignore path="**/generated/**" /> | ||
</issue> | ||
<issue id="MissingNullAnnotationOnMethodReturnType"> | ||
<ignore path="**/generated/**" /> | ||
</issue> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to add this config as a part of wordPressLintVersion
? I think that we never really want to lint generated
code in any way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question @wzieba ! 💯
TL:DR: We had a looooong discussion about that and ended-up merging this Lint rule without it, you could check this last comment on it, and all the relevant comments further up, I think you'll get the idea and the why behind this decision.
Hmmm... I didn't think of that, which is the fact that having checkGeneratedSources = true might be causing all this, very interesting! 🤔
Let me know if that makes sense to you too. 😄
Parent #18904
Closes #19025
This PR updates
wordPressLintVersion
to 2.0.0.To test:
Lint
related checks JP + WP and their reports: Jetpack + WordPress).MissingNullAnnotationOn*
correctness related rules are reporting as expected. For a reference, see screenshot below:Regression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
To test
section above.What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.UI Changes testing checklist: