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

[Nullability Annotations to Java Classes] Update wordPressLintVersion to 2.0.0 #19434

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

ParaskP7
Copy link
Contributor

@ParaskP7 ParaskP7 commented Oct 24, 2023

Parent #18904
Closes #19025

This PR updates wordPressLintVersion to 2.0.0.


To test:

  1. Verifying that all the CI checks are successful (focus on the Lint related checks JP + WP and their reports: Jetpack + WordPress).
  2. Verify that the new MissingNullAnnotationOn* correctness related rules are reporting as expected. For a reference, see screenshot below:

image


Regression Notes

  1. Potential unintended areas of impact

    • N/A
  2. What I did to test those areas of impact (or what existing automated tests I relied on)

    • See To test section above.
  3. What automated tests I added (or what prevented me from doing so)

    • N/A

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

UI Changes testing checklist:

  • Portrait and landscape orientations.
  • Light and dark modes.
  • Fonts: Larger, smaller and bold text.
  • High contrast.
  • Talkback.
  • Languages with large words or with letters/accents not frequently used in English.
  • Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
  • Large and small screen sizes. (Tablet and smaller phones)
  • Multi-tasking: Split screen and Pop-up view. (Android 10 or higher)

@peril-wordpress-mobile
Copy link

Warnings
⚠️ PR is not assigned to a milestone.

Generated by 🚫 dangerJS

@wpmobilebot
Copy link
Contributor

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr19434-b8d88b1
Commitb8d88b1
Direct Downloadjetpack-prototype-build-pr19434-b8d88b1.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr19434-b8d88b1
Commitb8d88b1
Direct Downloadwordpress-prototype-build-pr19434-b8d88b1.apk
Note: Google Login is not supported on these builds.

@Gilbert1874
Copy link

Gilbert1874 commented Oct 24, 2023 via email

Comment on lines +25 to +36
<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>
Copy link
Contributor

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.

Copy link
Contributor Author

@ParaskP7 ParaskP7 Oct 25, 2023

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. 😄

@ParaskP7 ParaskP7 merged commit 313371a into trunk Oct 25, 2023
2 checks passed
@ParaskP7 ParaskP7 deleted the deps/update-wordpress-lint-to-2.0.0 branch October 25, 2023 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nullability Annotations to Java Classes - Update and Configure wordPressLintVersion to 2.0.0
4 participants