Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update Symfony ruleset #2413

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

Merged
merged 1 commit into from
Dec 26, 2016
Merged

Update Symfony ruleset #2413

merged 1 commit into from
Dec 26, 2016

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented Dec 19, 2016

We've just upgraded PHP-CS-Fixer to 2.0 and we now have a lot of recommendations that we don't want to get on Symfony. The heredoc one being one of them.

Another rule we don't want, but I didn't find where this is enabled, is the conversion of one-line anonymous functions to multiline ones. Anyone knowns which rule we should disable to avoid that (http://fabbot.io/report/symfony/symfony/20907/a2c7e0634dc7052562b0d42bff5b141b638b7d18 has an example)? Thanks.

@SpacePossum
Copy link
Contributor

SpacePossum commented Dec 19, 2016

[...] we don't want to get on Symfony. The heredoc one being one of them.

The was proposed to the SF community and accepted here:
symfony/symfony#17086

so I'm not sure what we could've done more.

is the conversion of one-line anonymous functions to multiline ones.

This is done by the braces fixer, which cannot be configured ATM.
The fixer is following PSR-2 so that is why it ended up in the SF set as default.

Please regen. the readme (php php-cs-fixer readme > README.rst) to make Travis happy.

@keradus
Copy link
Member

keradus commented Dec 22, 2016

@fabpot , your further input about heredoc is needed to proceed.
Rule was approved and apply on framework repo, so at one point it was accepted. Are you sure to remove it?

lambdas - #2421

@fabpot
Copy link
Contributor Author

fabpot commented Dec 23, 2016

I've just changed the configuration of Symfony to exclude it (symfony/symfony@d559e26).

I still think it was a mistake to accept such a change in Symfony.

@keradus
Copy link
Member

keradus commented Dec 23, 2016

Then please apply both changes here and regenerate readme, as @SpacePossum asked.

@fabpot
Copy link
Contributor Author

fabpot commented Dec 26, 2016

Done

@SpacePossum
Copy link
Contributor

👍

@keradus keradus changed the title Remove from the Symfony ruleset rules that we don't want on Symfony Update Symfony ruleset Dec 26, 2016
@keradus keradus added this to the v2.0.1 milestone Dec 26, 2016
@keradus
Copy link
Member

keradus commented Dec 26, 2016

Thank you @fabpot.

@keradus keradus merged commit 750335d into PHP-CS-Fixer:master Dec 26, 2016
keradus added a commit that referenced this pull request Dec 26, 2016
This PR was merged into the 2.0-dev branch.

Discussion
----------

Update Symfony ruleset

We've just upgraded PHP-CS-Fixer to 2.0 and we now have a lot of recommendations that we don't want to get on Symfony. The `heredoc` one being one of them.

Another rule we don't want, but I didn't find where this is enabled, is the conversion of one-line anonymous functions to multiline ones. Anyone knowns which rule we should disable to avoid that (http://fabbot.io/report/symfony/symfony/20907/a2c7e0634dc7052562b0d42bff5b141b638b7d18 has an example)? Thanks.

Commits
-------

750335d removed from the Symfony ruleset rules that we don't want on Symfony
keradus added a commit that referenced this pull request Jan 4, 2017
This PR was merged into the 2.0-dev branch.

Discussion
----------

.php_cs.dist - update local CS config

ref #2413

Commits
-------

7af3cac .php_cs.dist - update local CS config
keradus added a commit that referenced this pull request Jan 12, 2017
…on (keradus)

This PR was squashed before being merged into the 2.1-dev branch (closes #2421).

Discussion
----------

BracesFixer - Add allow_single_line_closure configuration

Closing #2413

Commits
-------

0d17628 BracesFixer - Add allow_single_line_closure configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.