Page MenuHomePhabricator

Add ArcanistRaggedClassTreeEdgeXHPASTLinterRule to Phutil linter map
ClosedPublic

Authored by amckinley on Apr 24 2017, 11:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 17, 8:49 PM
Unknown Object (File)
Fri, Jan 10, 7:21 AM
Unknown Object (File)
Sat, Jan 4, 10:55 AM
Unknown Object (File)
Thu, Jan 2, 4:52 AM
Unknown Object (File)
Tue, Dec 31, 10:19 AM
Unknown Object (File)
Dec 21 2024, 3:53 PM
Unknown Object (File)
Nov 29 2024, 4:00 PM
Unknown Object (File)
Nov 28 2024, 9:36 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