Page MenuHomePhabricator

Add a linter rule for self member references
ClosedPublic

Authored by joshuaspence on Apr 12 2015, 12:59 PM.
Tags
None
Referenced Files
F14754428: D12370.id29714.diff
Tue, Jan 21, 3:32 PM
F14751043: D12370.id.diff
Tue, Jan 21, 12:05 PM
Unknown Object (File)
Wed, Jan 15, 12:09 AM
Unknown Object (File)
Mon, Jan 13, 4:25 PM
Unknown Object (File)
Sun, Jan 12, 4:19 PM
Unknown Object (File)
Thu, Jan 2, 3:35 PM
Unknown Object (File)
Sun, Dec 29, 10:54 PM
Unknown Object (File)
Sat, Dec 28, 3:20 PM
Subscribers

Details

Summary

Ref T7409. Adds a linter rule for the following:

  • self:: is used instead of Self::.
  • self:: is used for local static member reference.
  • self:: is used instead of self ::.

Based on Squiz_Sniffs_Classes_SelfMemberReferenceSniff.

Test Plan

Added unit tests.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for self member references.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Apr 12 2015, 1:00 PM
This revision was automatically updated to reflect the committed changes.