Home GnuPG

Improve the "self member reference" linter rule
9ee14d28490cUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Improve the "self member reference" linter rule

Summary:
Extends ArcanistSelfMemberReferenceXHPASTLinterRule to warn about the use of a hardcoded class name instead of self when instantiating a class. Arguably, we should maybe rename the linter rule from ArcanistSelfMemberReferenceXHPASTLinterRule to ArcanistSelfUsageXHPASTLinterRule, or even maybe split this rule into three separate rules:

  • ArcanistSelfMemberReferenceXHPASTLinterRule
  • ArcanistSelfSpacingXHPASTLinterRule
  • ArcanistSelfClassReferenceXHPASTLinterRule.

Test Plan: Added to existing test cases.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D13935

Details

Provenance
Joshua Spence <josh@freelancer.com>Authored on Dec 22 2015, 10:39 PM
Parents
rARC8762e3f36715: Use "--whitespace nowarn" in `arc patch` to respect trailing whitespace
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@freelancer.com> committed rARC9ee14d28490c: Improve the "self member reference" linter rule (authored by Joshua Spence <josh@freelancer.com>).Dec 22 2015, 10:39 PM