Page MenuHomePhabricator

Add a linter rule for useless overriding methods
ClosedPublic

Authored by joshuaspence on Apr 15 2015, 10:37 AM.
Tags
None
Referenced Files
F13243641: D12419.diff
Thu, May 23, 4:05 AM
F13227932: D12419.id30024.diff
Mon, May 20, 5:41 AM
F13222056: D12419.diff
Sun, May 19, 3:18 AM
F13204589: D12419.diff
Wed, May 15, 12:44 AM
F13197786: D12419.id30817.diff
Mon, May 13, 12:33 AM
F13197785: D12419.id30024.diff
Mon, May 13, 12:33 AM
F13197784: D12419.id29827.diff
Mon, May 13, 12:32 AM
F13197654: D12419.id.diff
Mon, May 13, 12:22 AM
Subscribers

Details

Summary

Ref T7409. Adds ArcanistXHPASTLinter::LINT_USELESS_OVERRIDING_METHOD for detecting method which only call their parent method. Based on Generic_Sniffs_CodeAnalysis_UselessOverridingMethodSniff.

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 useless overriding methods.
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 15 2015, 11:49 AM
This revision was automatically updated to reflect the committed changes.