Skip to content

CS: add two new rules#824

Merged
wimg merged 1 commit intomasterfrom
feature/build-cs-tweaks
Jun 25, 2019
Merged

CS: add two new rules#824
wimg merged 1 commit intomasterfrom
feature/build-cs-tweaks

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 25, 2019

  1. Add the MultipleStatementAlignment sniff
    The code base basically already complies with this rule, which demands that the assignment operators for blocks of variable assignments are aligned.
    When an assignment is not in a block, there should be exactly one space between the variable and the assignment.
    Includes fixing up the code base for the very few places where the code didn't comply yet.
  2. Add the IncludingFile sniff
    Again, the code base already complies with this rule, safe for the unit test bootstrap, in which case it is ok that the code doesn't comply.

Includes one minor consistency fix, prefixing a global constant when used with a namespace separator to indicate global namespace.

1. Add the `MultipleStatementAlignment` sniff
    The code base basically already complies with this rule, which demands that the assignment operators for blocks of variable assignments are aligned.
    When an assignment is not in a block, there should be exactly one space between the variable and the assignment.
    Includes fixing up the code base for the very few places where the code didn't comply yet.
2. Add the `IncludingFile` sniff
    Again, the code base already complies with this rule, safe for the unit test bootstrap, in which case it is ok that the code doesn't comply.

Includes one minor consistency fix, prefixing a global constant when used with a namespace separator to indicate global namespace.
@jrfnl jrfnl added Type: chores/QA PR: quick merge PR only contains relatively simple changes PR: ready for review labels Jun 25, 2019
@jrfnl jrfnl added this to the 9.2.0 milestone Jun 25, 2019
@jrfnl jrfnl requested a review from wimg June 25, 2019 14:52
@wimg wimg merged commit 22c231c into master Jun 25, 2019
@wimg wimg deleted the feature/build-cs-tweaks branch June 25, 2019 20:05
@jrfnl jrfnl removed the PR: quick merge PR only contains relatively simple changes label Sep 5, 2019
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.

2 participants