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
F18199388: D12370.id29720.diff
Mon, Aug 18, 1:48 AM
F18102771: D12370.id29713.diff
Sat, Aug 9, 11:11 PM
F18101857: D12370.id29714.diff
Sat, Aug 9, 4:10 PM
F18086958: D12370.id.diff
Wed, Aug 6, 1:26 AM
F18049405: D12370.diff
Sun, Aug 3, 4:09 PM
F17866909: D12370.id29698.diff
Mon, Jul 28, 5:10 AM
Unknown Object (File)
May 9 2025, 1:04 PM
Unknown Object (File)
May 6 2025, 4:15 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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 5266
Build 5284: [Placeholder Plan] Wait for 30 Seconds

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.