Skip to content
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

SingleLineCommentSpacingFixer - Introduction #6274

Merged
merged 1 commit into from Feb 9, 2022
Merged

SingleLineCommentSpacingFixer - Introduction #6274

merged 1 commit into from Feb 9, 2022

Conversation

SpacePossum
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Feb 7, 2022

Coverage Status

Coverage increased (+0.01%) to 93.149% when pulling 701b30e on SpacePossum:master_SingleLineCommentSpacingFixer into db4b997 on FriendsOfPHP:master.

@SpacePossum SpacePossum merged commit 905baea into PHP-CS-Fixer:master Feb 9, 2022
@SpacePossum SpacePossum deleted the master_SingleLineCommentSpacingFixer branch February 9, 2022 08:04
@mvorisek
Copy link
Contributor

mvorisek commented Mar 8, 2022

why is such fixer useful and enabled by in @PhpCsFixer ruleset?

example https://github.com/atk4/ui/runs/5461667530?check_suite_focus=true

we are used to put space after // when it is a "comment that should stay"

but if some "code is commented temporary", there is no space

this is a semantic convection and help the develop to understand temporary commented code vs. regular comment

@SpacePossum
Copy link
Contributor Author

why is such fixer useful and enabled by in @PhpCsFixer ruleset?

That is set is for this project itself and we do not follow the rule for comments that you describe. The rule is in clear conflict with your (teams) convention, but not with this project. As such, I would recommend not using the rule set for this project but to create you own config for your project.

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

Successfully merging this pull request may close these issues.

None yet

4 participants