Ref T7409. Adds ArcanistXHPASTLinter::LINT_USELESS_OVERRIDING_METHOD for detecting method which only call their parent method. Based on Generic_Sniffs_CodeAnalysis_UselessOverridingMethodSniff.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Maniphest Tasks
- T7415: Write a linter rule to detect when a class name is used instead of self
T7409: Implement PHPCS lints - Commits
- rARC6295134bc7fb: Add a linter rule for useless overriding methods
Added unit tests.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- master
- Lint
Lint Passed - Unit
Test Failures - Build Status
Buildable 5438 Build 5456: [Placeholder Plan] Wait for 30 Seconds
Time | Test | |
---|---|---|
1,331 ms | ArcanistPuppetLintLinterTestCase::testLinter | |
732 ms | ArcanistCSSLintLinterTestCase::testLinter | |
146 ms | ArcanistCSSLintLinterTestCase::testVersion | |
162 ms | ArcanistChmodLinterTestCase::testLinter | |
275 ms | ArcanistClosureLinterTestCase::testLinter | |
View Full Test Results (1 Failed · 48 Passed · 4 Skipped) |