[Compile Warnings As Errors] Editor Module - Resolve Warnings & Enable All Warnings as Errors #17204
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Parent: #17173
Closes: #17180
This PR resolves/suppresses a couple of warnings for the
editor
module and then enables all warnings as errors on it as well.Warnings Resolution List:
The
allWarningsAsErrors
configuration is currently applied on the module level in order to make sure that, as the overall Compiler Warnings as Errors work is progressing, no new warnings are added to this module, which is already free of warnings.When the overall Compiler Warnings as Errors work is complete on all modules, then this module level
allWarningsAsErrors
configuration will be replaced by a root level such configuration that will be applied by default to all modules (see here).PS.1: @SiobhyB I added you as the main reviewer, that is, in addition to @wordpress-mobile/apps-infrastructure team itself, but randomly, since I want someone from the
WordPress Android
team to primarily sign-off on that change. 🥇PS.2 @SiobhyB I actually didn't add you here too randomly as I want you to verify this e053210 change I did, which reverts your such 24a0532 change (as part of this PR). I am actually not sure why you did this change, thus please do let me know if my change isn't breaking anything that you tried to fix with your change.
FYI: I am going to randomly add more of you in those PRs that will follow, just so you become more aware of this change and how close we are on enabling
allWarningsAsErrors
by default everywhere. 🎉To test:
editor
module is responsible for that. For example, you could try replacing the featured image on a post, from a post image (not the settings page), and see if that works as expected.Regression Notes
The editor functionality is not working as expected.
See
To test
section above.N/A
PR submission checklist:
RELEASE-NOTES.txt
if necessary.