-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
WordPress CS 3.0.0 planning & roadmap #1877
Comments
Oh and just in case anyone is wondering about the date: no this amount of work is no joke 😂 |
Status of sniff review & priorities: To review - prio 1:All done To review - prio 2:Code in the sniff (if any) itself can be reviewed already. Underlying abstract sniff logic is expected to be replaced with an abstract from PHPCSUtils. All done To review - prio 3:All done Leave alone for now as these will probably be (partially) replaced with a sniff from PHPCSExtra:
Reviewed & changes pulled:
Verified / No (extra) changes needed:
Please add your name to the sniff to claim it or leave a comment in this thread. |
@jrfnl Deal direct is not supported for PHP 8.0, will that be patched in WPCS 3.0.0? |
@shivapoudel The DealerDirect plugin is a |
Also, as per https://github.com/Dealerdirect/phpcodesniffer-composer-installer/pull/132/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R34 the dealerdirect plugin has had PHP 8 support since 0.7.0 (see the releases). |
@jrfnl @GaryJones This is the error I am receiving currently with PHP 8.0.
Now lets see if everything is compatible with latest stable composer. I am giving it a try:
Again receiving some sort of dealerdirect problems:
|
@dingo-d and me had a long call today discussing how to move forward and get WPCS 3.0.0 in a releasable state. Aside from everything discussed above (and overlapping it), we came to the conclusion that there are four big things which need to be addressed and we intend to take action on these in the near future:
Of course, other generic maintenance actions, like updating the global variables list, updating deprecated function lists etc should all be executed as well before release. |
FYI: @dingo-d and me are working our way through the March 2020 Make post to add all rules which didn't gather any relevant discussion to the Handbook + to add sniffs for these new rules, in as far as sniffs for them are currently available. We tracking our progress on this here: https://docs.google.com/spreadsheets/d/1ZsjWtacz3jNIL-splQFuZLwjkVJYavpqwMVKCAzlgQk/edit?usp=sharing |
Quick question: are https://make.wordpress.org/core/2020/03/20/updating-the-coding-standards-for-modern-php/ added to WPCS 3.0.0 already?
|
Yes, partially. Some proposals had comments that will be addressed in the subsequent make posts. You can check the sheet with the parts that will go into the WPCS and parts that won't on this comment. |
Could you perhaps check that you correctly handle this case: <?php
use Foo\Bar;
/**
* bla
*/
use Abc\Xyz; As slevomat currently has a bug slevomat/coding-standard#1504 and I guess there will be a similar issue here. |
What do you expect to happen for the above example? It's hard to check without info about what is the desired behavior 🤷🏼♂️ Please open a new issue to discuss this specific issue further. |
See the slevomat issue. |
Did you try using |
@dingo-d IIRC the rules related to import |
Hello @jrfnl! 👋🏻 |
@szepeviktor I don't understand why you are asking. I've vaguely heard of Neutron, but I don't see any relationship to WPCS ? I.e. Kudos to the maintainers about being clear they are abandoning a package. Nothing to do with WPCS though. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@szepeviktor As a side-note: this discussion doesn't belong in this issue. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This is a plan for WordPressCS, not for WP Core.
You clearly missed the next comment (just above your comment....)
No, it does not. This ticket is the roadmap for WordPressCS 3.0.0. If you want to propose things for WordPressCS, create a new ticket (if one doesn't exist for the same already). If a proposal could be considered for Core, it will need approval via a proposal on Make. However, if you want to propose for WP Core to start using certain PHP 7 features (which I suspect is what you actually want), you are in the wrong repo. Go and open a ticket in Trac. Whether or not WP Core decides to use PHP 7 features is completely unrelated to the Coding Standards and should NOT be discussed in this repo. If WP Core does decide to use certain things, then it can be discussed here if certain coding standards should be enforced for whatever PHP 7 syntax we're talking about (if they aren't already), but that's a completely different issue and different decision and neither of these topics have anything to do with the Roadmap for WPCS 3.0.0, which is closed and not open for new proposals as we're very close to the release. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as abuse.
This comment was marked as abuse.
This is a serious question not a spam. Why made such a huge roadmap where we can divide the project into smaller iterations. |
@meshakeeb Asked & answered multiple times before. You clearly have no idea of the work involved. I get the impatience, but unless you have something positive to contribute to the conversation, you are just putting more stress on already overloaded maintainers. |
Sorry if you feel that way @jrfnl. How can I contribute? |
@meshakeeb Thanks. For the 3.0.0 release, there is not much anyone else can do anymore, we're nearly done, though testing the Having said that, contributions are always welcome, whether they are for the 3.0.0 release or future releases. |
Hello WPCS team, heartily congratulations on the big release. I will update my projects on this and if find any issue will report. |
Work on WordPressCS 3.0.0 will start in the near future. @GaryJones, @dingo-d and me have recently had a call to discuss what we envision for WPCS 3.0.0.
This issue is intended to keep track of what needs to be done, as well as give openness about the changes envisioned for WPCS 3.0.0.
Milestone: https://github.com/WordPress/WordPress-Coding-Standards/milestone/25
Planning:
second half of April/beginning of May (2020)July 2020.Environment changes:
composer create-project
will still be possible, but no support will be given for those installations.Note: PHPCSUtils and PHPCSExtra both are on 1.0.0-alphaX releases at the time of writing this.
The first stable
1.0.0
for both will be tagged before the first WPCS 3.0.0 RC will be (pre-)released.Roadmap / what needs to be done:
composer.json
,.travis.yml
etc) to allow the changes to be made. - PR 3.0: Composer: set the new requirements for WPCS #1905Sniff::has_whitelist_comment()
method and all references to it #1908, 3.0: Remove the WordPress.WP.TimezoneChange sniff #1909WordPress.CodeAnalysis.EmptyStatement
sniff #1910WordPress.PHP.DisallowShortTernary
sniff #1911, 3.0: Replace theWordPress.WhiteSpace.DisallowInlineTabs
sniff #1912, 3.0: Replace theWordPress.PHP.StrictComparisons
sniff #1919, 3.0: Core: replaceGeneric.Arrays.DisallowShortArraySyntax
withUniversal
version #1920 (more to come)Where applicable, add extra unit tests to the sniff to demonstrate bugs fixed and safeguard this for the future.
See the checklist in the comment below for status
Sniff
class: aside from generically useful methods, move most methods and properties to traits which target something specific. Also see Extract re-usable code from Sniff.php into new package #1465 (@jrfnl)Generically usable sniffs should be added to PHPCSExtra, WP or WPCS specific sniffs should be added to WPCS itself.
Note: these do not all need to be addressed in WPCS 3.0.0. Additional sniffs can be added in minors, so some issues may be left to address later.
I've tried to be complete here, but please feel free to leave comments about anything I've forgotten in this list ;-)
The text was updated successfully, but these errors were encountered: