Avoid incompatibility between Generic and PSR2 standards for function call indentation#3631
Closed
fredden wants to merge 1 commit intosquizlabs:masterfrom
Closed
Avoid incompatibility between Generic and PSR2 standards for function call indentation#3631fredden wants to merge 1 commit intosquizlabs:masterfrom
Generic and PSR2 standards for function call indentation#3631fredden wants to merge 1 commit intosquizlabs:masterfrom
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Contributor
|
Contributor
Author
Yes, see #2078 (comment).
I've been working on this, and it's difficult. I expect to update the pull request with this soon.
I agree. Can you suggest a viable alternative in this case? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Generic and PSR2 standards for function call indentation
635cd00 to
33a4d33
Compare
Contributor
Author
|
@jrfnl I've revisited this and written something completely different to the first attempt. I don't seem to be able to request your review via the GitHub web interface. Please can you take a look at this and let me know what you think.
|
1a2e643 to
507294a
Compare
507294a to
b94ac08
Compare
5 tasks
Contributor
Author
|
Superseded by PHPCSStandards/PHP_CodeSniffer#38 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generic.WhiteSpace.ScopeIndentandPSR2.Methods.FunctionCallSignatureboth try to fix indentation differently. This results in files not being able to be fixed automatically withphpcbf.See #2078 (comment) where @gsherwood says that
Generic.WhiteSpace.ScopeIndentshould win in these cases.This pull request fixes #2078
by eliminating the incompatibility when both sniffs are being run. When.Generic.WhiteSpace.ScopeIndentis not active, thenPSR2.Methods.FunctionCallSignaturewill continue to work as normal. WhenGeneric.WhiteSpace.ScopeIndentis active, then this particular code-path will be ignored/skipped