-
Notifications
You must be signed in to change notification settings - Fork 54
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
Incorrect display of readme.txt
instead of readme.md
in Plugin Readme check
#239
Conversation
I'm curious about the initial intent for this check. I think it's still a requirement for a plugin to have a |
@joemcgill I thought so too, but someone else (I don't recall, maybe it was @swissspidy or @westonruter?) pointed out that wordpress.org, despite not well documenting it, actually supports using |
I think it was actually @johnbillion: https://johnblackbourn.com/readme-md-plugin-on-wordpress-org/ For the AMP plugin we initially tried just going with |
That's really interesting, I didn't realize this was supported. Still, I'm curious if the lack of a README.txt file would get flagged in the plugin review process, and if so, is something we should still include as a check in our plugin? |
I don't think we need to specifically check for |
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.
Thanks @mukeshpanchal27, a few minor bits of feedback below to make the file paths consistent with other checks (relative to the plugin's directory).
Co-authored-by: Felix Arntz <[email protected]>
Thanks all the the review and details. The PR is ready for review. |
The Plugin Checker currently checks all files, including in subfolders. However, we should modify the check to only consider files in the root directory for WordPress allows and parse For instance, when we checked the WooCommerce plugin, the Plugin Checker returned an array of files as follows:
The specific error highlighted was: FILE: packages/action-scheduler/readme.txt
We will update the Plugin Checker to only report errors for @felixarntz @joemcgill If the above makes sense, then I will open the follow-up issue and start working on it. Thanks. |
Thanks @mukeshpanchal27, that's a great catch! +1 to opening a follow-up issue and PR to fix it so that the plugin checker only considers readme files in the root directory. |
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.
LGTM, let's open a follow-up PR for the other problem you discovered above. Thank you @mukeshpanchal27!
In issue #195, it was allowed to use a
readme.md
file for plugin. However, when someone uses thereadme.md
file and runs the plugin checks, the plugin incorrectly displaysreadme.txt
as the file name instead of the actualreadme.md
file.Checklist: