Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistLinter.php
| Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | /* -( Executing Linters )-------------------------------------------------- */ | ||||
| * @return void | * @return void | ||||
| * @task exec | * @task exec | ||||
| */ | */ | ||||
| public function didLintPaths(array $paths) { | public function didLintPaths(array $paths) { | ||||
| return; | return; | ||||
| } | } | ||||
| /** | |||||
| * Obsolete hook which was invoked before a path was linted. | |||||
| * | |||||
| * WARNING: This is an obsolete hook which is not called. If you maintain | |||||
| * a linter which relies on it, update to use @{method:lintPath} instead. | |||||
| * | |||||
| * @task exec | |||||
| */ | |||||
| final public function willLintPath($path) { | |||||
| // TODO: Remove this method after some time. In the meantime, the "final" | |||||
| // will fatal subclasses which implement this hook and point at the API | |||||
| // change so maintainers get fewer surprises. | |||||
| throw new PhutilMethodNotImplementedException(); | |||||
| } | |||||
| /** | |||||
| * Obsolete hook which was invoked after linters ran. | |||||
| * | |||||
| * WARNING: This is an obsolete hook which is not called. If you maintain | |||||
| * a linter which relies on it, update to use @{method:didLintPaths} instead. | |||||
| * | |||||
| * @return void | |||||
| * @task exec | |||||
| */ | |||||
| final public function didRunLinters() { | |||||
| // TODO: Remove this method after some time. In the meantime, the "final" | |||||
| // will fatal subclasses which implement this hook and point at the API | |||||
| // change so maintainers get fewer surprises. | |||||
| throw new PhutilMethodNotImplementedException(); | |||||
| } | |||||
| public function getLinterPriority() { | public function getLinterPriority() { | ||||
| return 1.0; | return 1.0; | ||||
| } | } | ||||
| /** | /** | ||||
| * TODO: This should be `final`. | * TODO: This should be `final`. | ||||
| */ | */ | ||||
| public function setCustomSeverityMap(array $map) { | public function setCustomSeverityMap(array $map) { | ||||
| ▲ Show 20 Lines • Show All 383 Lines • Show Last 20 Lines | |||||