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
F13181836: D12419.diff
Thu, May 9, 4:08 PM
Unknown Object (File)
Tue, May 7, 7:48 AM
Unknown Object (File)
Fri, May 3, 7:27 AM
Unknown Object (File)
Thu, Apr 25, 1:33 AM
Unknown Object (File)
Thu, Apr 11, 9:07 AM
Unknown Object (File)
Apr 8 2024, 7:33 AM
Unknown Object (File)
Apr 4 2024, 4:08 AM
Unknown Object (File)
Apr 3 2024, 2:51 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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 5319
Build 5337: [Placeholder Plan] Wait for 30 Seconds

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.