Closed mboynes closed 7 years ago
We're set up to do cleanup now, but because of the code churn required, we should do it as the very last thing.
If you still need help with this still, I'm willing to take a few files.
If you still need help with this still, I'm willing to take a few files.
Great! I think now's a good time for it, given we're at the beginning of the next cycle and don't have too many outstanding pull requests.
Can you submit pull requests file by file, and enable PHPCS validation by Travis on the file at the beginning of the cleanup process? This will let us capture a failing build with all of the validations, and work towards a passing build.
I will pick up fieldmanager.php
phpcbf can do miracles in 10 seconds.
On php/class-fieldmanager-autocomplete.php
On php/class-fieldmanager-checkbox.php
On php/class-fieldmanager-checkboxes.php
UPDATE: This seems to already be up to standard.
On php/class-fieldmanager-colorpicker.php
On php/class-fieldmanager-draggablepost.php
On php/class-fieldmanager-field.php
On php/class-fieldmanager-grid.php
On php/class-fieldmanager-group.php
On php/class-fieldmanager-hidden.php
On php/class-fieldmanager-link.php
On php/class-fieldmanager-media.php
On php/class-fieldmanager-options.php
On php/class-fieldmanager-radios.php
On php/class-fieldmanager-richtextarea.php
On php/class-fieldmanager-select.php
On php/context/class-fieldmanager-context-page.php
On php/class-fieldmanager-textfield.php
On php/context/class-fieldmanager-context-post.php
On php/context/class-fieldmanager-context-quickedit.php
On php/context/class-fieldmanager-context-storable.php
On php/context/class-fieldmanager-context-submenu.php
On php/context/class-fieldmanager-context-term.php
On php/context/class-fieldmanager-context-user.php
On php/context/class-fieldmanager-context.php
On php/datasource/class-fieldmanager-datasource-post.php
On php/datasource/class-fieldmanager-datasource-term.php
On php/datasource/class-fieldmanager-datasource-user.php
On php/datasource/class-fieldmanager-datasource.php
On php/util/class-fieldmanager-util-term-meta.php
On php/util/class-fieldmanager-util-validation.php
On templates/options-radios.php
On templates/textfield.php
I don't think it's worthwhile to update the JS at this time. The JS for this plugin needs a complete overhaul, moving it to webpack, etc., so I'm going to mark this as resolved now that the PHP files are all done.
We are aiming to enforce the WordPress coding standards across the entire plugin.
We'd love some help doing this spring cleaning. Below is a list of files that need to be verified or updated. If you want to chip in, comment on this issue saying that you're going to take one, and we'll update the issue to say you're on it. Then simply submit a PR with the clean file when you're done.
PHP
fieldmanager.php
php/class-fieldmanager-autocomplete.php
php/class-fieldmanager-checkbox.php
php/class-fieldmanager-checkboxes.php
php/class-fieldmanager-colorpicker.php
php/class-fieldmanager-datepicker.php
php/class-fieldmanager-draggablepost.php
php/class-fieldmanager-field.php
php/class-fieldmanager-grid.php
php/class-fieldmanager-group.php
php/class-fieldmanager-hidden.php
php/class-fieldmanager-link.php
php/class-fieldmanager-media.php
php/class-fieldmanager-options.php
php/class-fieldmanager-password.php
php/class-fieldmanager-radios.php
php/class-fieldmanager-richtextarea.php
php/class-fieldmanager-select.php
php/class-fieldmanager-textarea.php
php/class-fieldmanager-textfield.php
php/context/class-fieldmanager-context-page.php
php/context/class-fieldmanager-context-post.php
php/context/class-fieldmanager-context-quickedit.php
php/context/class-fieldmanager-context-storable.php
php/context/class-fieldmanager-context-submenu.php
php/context/class-fieldmanager-context-term.php
php/context/class-fieldmanager-context-user.php
php/context/class-fieldmanager-context.php
php/datasource/class-fieldmanager-datasource-post.php
php/datasource/class-fieldmanager-datasource-term.php
php/datasource/class-fieldmanager-datasource-user.php
php/datasource/class-fieldmanager-datasource.php
php/util/class-fieldmanager-util-term-meta.php
php/util/class-fieldmanager-util-validation.php
templates/datepicker.php
templates/options-checkboxes.php
templates/options-radios.php
templates/textfield.php
JS
js/fieldmanager-autocomplete.js
js/fieldmanager-colorpicker.js
js/fieldmanager-datepicker.js
js/fieldmanager-draggablepost.js
js/fieldmanager-group-tabs.js
js/fieldmanager-post.js
js/fieldmanager-quickedit.js
js/fieldmanager-select.js
js/fieldmanager.js
js/grid.js
js/media/fieldmanager-media.js
js/richtext.js
js/validation/fieldmanager-validation.js