forked from hhvm/hhast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLintRule.hack
More file actions
29 lines (26 loc) · 777 Bytes
/
Copy pathLintRule.hack
File metadata and controls
29 lines (26 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
namespace Facebook\HHAST;
/**
* An abstract lint rule that provides a single error reason, which could be
* either a HHAST linter or a lint rule written in OCaml.
*/
<<__Sealed(SingleRuleLinter::class, HHClientLintRule::class)>>
interface LintRule {
/**
* The human readable name of the lint rule, which can be used to report
* the lint error.
*/
public function getName(): string;
/**
* The error code of the lint rule, which can be used to determine markers to
* suppress lint errors.
*/
public function getErrorCode(): string;
}