forked from hhvm/hhast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLinter.hack
More file actions
33 lines (25 loc) · 885 Bytes
/
Copy pathLinter.hack
File metadata and controls
33 lines (25 loc) · 885 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
30
31
32
33
/*
* 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;
/**
* The process to find problems against a single source file.
*
* Problems found by a Linter could associated with different LintRules,
* especially when the Linter is a proxy calling other linting tools.
*/
<<__Sealed(SingleRuleLinter::class, HHClientLinter::class)>>
interface Linter {
<<__Reifiable>>
abstract const type TConfig;
public function getLintErrorsAsync(): Awaitable<vec<LintError>>;
public static function shouldLintFile(File $_): bool;
public static function newInstance(File $file, ?this::TConfig $config): this;
public function isLinterSuppressedForFile(): bool;
public function getFile(): File;
}