Page MenuHomePhabricator

Add rule to lint for PSR2 spec spacing after use statements.
AbandonedPublic

Authored by lucaspickup on Nov 22 2015, 10:33 PM.
Tags
None
Referenced Files
F18087178: D14540.id35170.diff
Wed, Aug 6, 2:43 AM
F17928890: D14540.diff
Jul 30 2025, 4:26 PM
Unknown Object (File)
Jun 3 2025, 2:26 PM
Unknown Object (File)
May 25 2025, 6:37 AM
Unknown Object (File)
Apr 28 2025, 6:27 PM
Unknown Object (File)
Apr 27 2025, 3:34 PM
Unknown Object (File)
Apr 23 2025, 8:45 PM
Unknown Object (File)
Apr 15 2025, 3:16 PM
Subscribers
This revision can not be accepted until the required legal agreements have been signed.

Details

Summary

This rule detects when there is no blank newline after a signle or series of use statement.
This blank line is required under the PSR-2 Spec, 3.0.
Ref T20874

Test Plan

There are unti tests included and I tried the rule a few times in gaf on some modfied files.

Diff Detail

Repository
rARC Arcanist
Branch
newline-use-psr2
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 8981
Build 10545: arc lint + arc unit

Event Timeline

lucaspickup retitled this revision from to Add rule to lint for PSR2 spec spacing after use statements..
lucaspickup updated this object.
lucaspickup edited the test plan for this revision. (Show Details)
lucaspickup added a reviewer: josh.

Forgot to set the conduit URI....

Content Hidden

The content of this revision is hidden until the author has signed all of the required legal agreements.