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
F19567992: D12419.id29827.diff
Jan 31 2026, 9:37 PM
F19522804: D12419.diff
Jan 17 2026, 10:57 AM
F19520095: D12419.diff
Jan 16 2026, 11:03 AM
F19515399: D12419.diff
Jan 14 2026, 11:03 AM
F19511216: D12419.diff
Jan 11 2026, 11:30 PM
F18807037: D12419.id.diff
Oct 18 2025, 10:40 PM
F18805086: D12419.id.diff
Oct 18 2025, 1:40 PM
F18799300: D12419.diff
Oct 17 2025, 1:06 PM
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.