Open jacobcassidy opened 1 month ago
@jacobcassidy Good question. AFAICS, the PER standard does not have rules about this. Might be an idea to open an issue in the PER repo ?
Independently of the outcome of such a discussion, I'd be open to accepting two different, but related sniffs for match arrow alignment:
Having both sniffs available would allow either style to be enforced, depending on the preference of the coding standard including the sniffs.
P.S.: Please use the appropriate issue template when opening an issue (and do not remove the template).
@jrfnl Sounds good. I'll open an issue with the PER repo, and when I have extra time, I'll review this repo to see how to create the sniffs you mentioned.
P.S.: Please use the appropriate issue template when opening an issue (and do not remove the template).
Noted.
Should Match Expressions have alignment like those under the
Generic.Formatting.MultipleStatementAlignment.NotSameWarning
andWordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAlign
rules?For example, this is not aligned:
The desired alignment: