1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 08:42:40 +01:00
phorge-arcanist/src
Joshua Spence fc70dfe268 Add a linter rule for self member references
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 [[https://github.com/squizlabs/PHP_CodeSniffer/blob/master/CodeSniffer/Standards/Squiz/Sniffs/Classes/SelfMemberReferenceSniff.php | Squiz_Sniffs_Classes_SelfMemberReferenceSniff]].

Test Plan: Added unit tests.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T7409

Differential Revision: https://secure.phabricator.com/D12370
2015-04-13 07:32:05 +10:00
..
__tests__ Use PhutilLibraryTestCase 2015-01-07 07:37:59 +11:00
configuration phtize strings in ArcanistSettings 2015-02-03 06:54:46 +11:00
difference Minor linter fixes 2014-09-27 10:21:23 +10:00
differential Remove @group annotations 2014-07-09 09:12:13 +10:00
docs/book Generate a documentation book for Arcanist 2014-03-05 13:00:40 -08:00
events/constant Remove @group annotations 2014-07-09 09:12:13 +10:00
exception Remove some unused classes 2015-01-03 09:06:16 +11:00
extensions Changes to Arcanist for libphutil "extensions/" 2013-04-22 14:38:49 -07:00
hgdaemon Minor linter fixes 2014-09-27 10:21:23 +10:00
infrastructure/testing Delete license headers from files 2012-11-05 11:16:24 -08:00
internationalization Prompt users to ignore or abort on untracked files 2015-04-02 13:40:14 -07:00
lint Add a linter rule for self member references 2015-04-13 07:32:05 +10:00
parser Fix text lint issues 2015-04-07 18:09:27 +10:00
repository Fix visibility of ArcanistMercurialAPI::didReloadCommitRange 2015-01-14 06:48:25 +11:00
unit Fix text lint issues 2015-04-07 18:09:27 +10:00
workflow Trim trailing whitespace from diff hints 2015-04-13 07:21:07 +10:00
workingcopyidentity Remove @group annotations 2014-07-09 09:12:13 +10:00
__phutil_library_init__.php Delete license headers from files 2012-11-05 11:16:24 -08:00
__phutil_library_map__.php Remove deprecated ComprehensiveLintEngine class 2015-04-07 07:22:59 +10:00