Page MenuHomePhabricator

Add ArcanistRaggedClassTreeEdgeXHPASTLinterRule to Phutil linter map
ClosedPublic

Authored by amckinley on Apr 24 2017, 11:13 PM.
Tags
None
Referenced Files
F18842919: D17787.diff
Tue, Oct 28, 7:41 PM
F18589882: D17787.id.diff
Sep 12 2025, 4:34 AM
F18589313: D17787.id42778.diff
Sep 12 2025, 3:05 AM
F18589221: D17787.id42771.diff
Sep 12 2025, 2:52 AM
F18588878: D17787.diff
Sep 12 2025, 1:50 AM
F18092580: D17787.id42771.diff
Aug 7 2025, 11:35 AM
F18091707: D17787.id42778.diff
Aug 7 2025, 12:17 AM
F17857925: D17787.id.diff
Jul 27 2025, 7:01 PM
Subscribers

Details

Summary

Fixes T12555.

Test Plan

Added this class to the codebase and ran arc liberate:

<?php

class FooBar {
    public static function doTheFoo() {
        return 'foobar';
    }
}

Ran arc lint and observed this warning:

Warning  (XHP87) Class Not `abstract` Or `final`
 This class is neither `final` nor `abstract`, and does not have a
 docblock marking it `@concrete-extensible`.

            1 <?php
            2
 >>>        3 class FooBar {
            4     public static function doTheFoo() {
            5         return "foobar";
            6     }

Added a final modifier to FooBar's declaration and observed the warning went away.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable