Skip to content

PSR-12 update #128

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

Open
1 task
ghost opened this issue Aug 12, 2019 · 5 comments
Open
1 task

PSR-12 update #128

ghost opened this issue Aug 12, 2019 · 5 comments
Labels

Comments

@ghost
Copy link

ghost commented Aug 12, 2019

Now that PSR12 has been released accepted, when will we see an update to include it as part of the ruleset?
https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/PSR12/ruleset.xml

ToDo list:

@lenaorobei
Copy link
Contributor

Hi @paul-gene! That's a really good question. If you are interested in promoting this idea it would be great if you could open a proposal in the magento/architecture repo.

@lenaorobei lenaorobei added need to discuss Rule requires discussion proposal New rule proposal labels Aug 12, 2019
@lenaorobei
Copy link
Contributor

@paul-gene if you dont mind, I will update this issue with the action items that need to be done in order to accomplish this task.

@lenaorobei lenaorobei changed the title PSR 12 update? PSR-12 update Sep 4, 2019
@lenaorobei lenaorobei added accepted New rule is accepted and removed need to discuss Rule requires discussion proposal New rule proposal labels Sep 4, 2019
@ryantfowler ryantfowler self-assigned this Sep 5, 2019
@coderimus coderimus self-assigned this Dec 2, 2019
@coderimus
Copy link

Hello @lenaorobei just a status update:

  1. I updated my local phpcs to the latest stable version PHP_CodeSniffer version 3.5.3 (stable) and made a diff between PSR-2 and PSR-12 as we discussed. I am with the Generic list. Everything is clear at this moment.

  2. During the investigation I wound next: Magento uses this package friendsofphp/php-cs-fixer to provide an auto-fix functionality. Currently, this package has an open PR (Initial PSR12 ruleset creation PHP-CS-Fixer/PHP-CS-Fixer#4695) for the PSR-12 upgrade and also tag with the PHP 7.4 support. Think that we will need to upgrade it's version also.

@lenaorobei
Copy link
Contributor

Hi @coderimus! Thanks for the update.

  1. Perfect. Let me know if you need any help with this.
  2. friendsofphp/php-cs-fixer is a different from phpcs tool and is not actually related to this repo. I think that such changes should be done in https://github.com/magento/magento2 repo. By the way, sniffer also has OOB beautifier tool phpcbf.

@lenaorobei
Copy link
Contributor

Hi @coderimus. I've unassigned you from this issue, since no updates were provided.
Hopefully, somebody will pick this up.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants