@@ -15,8 +15,7 @@ use namespace HH\Lib\{C, Str, Vec};
1515/**
1616 * A linter as a proxy invoking `hh_client --lint`.
1717 */
18- final class HHClientLinter implements Linter {
19- use LinterTrait ;
18+ final class HHClientLinter extends BaseLinter {
2019 use SuppressibleTrait ;
2120
2221 const type TConfig = shape() ;
@@ -40,6 +39,7 @@ final class HHClientLinter implements Linter {
4039 );
4140 }
4241
42+ <<__Override >>
4343 public async function getLintErrorsAsync (
4444 ): Awaitable <vec <HHClientLintError >> {
4545 $lines = await __Private \execute_async (
@@ -63,13 +63,13 @@ final class HHClientLinter implements Linter {
6363 |> Vec \map (
6464 $$,
6565 $error ==> new HHClientLintError (
66- $this -> file ,
66+ $this -> getFile() ,
6767 $error ,
6868 $this :: blameCode($file_lines , $error ),
6969 ),
7070 )
7171 |> Vec \filter ($$, $error ==> {
72- if ($error -> getLintRule()-> isSuppressedForFile($this -> file )) {
72+ if ($error -> getLintRule()-> isSuppressedForFile($this -> getFile() )) {
7373 return false ;
7474 }
7575 $range = $error -> getRange();
@@ -78,12 +78,12 @@ final class HHClientLinter implements Linter {
7878 }
7979 list (list ($line_number , $_ ), $_ ) = $range ;
8080 $previous_line_number = $line_number - 1 ;
81- if ($this -> isSuppressedForLine($this -> file , $previous_line_number )) {
81+ if ($this -> isSuppressedForLine($this -> getFile() , $previous_line_number )) {
8282 return false ;
8383 }
8484 if (
8585 $error -> getLintRule()
86- -> isSuppressedForLine($this -> file , $previous_line_number )
86+ -> isSuppressedForLine($this -> getFile() , $previous_line_number )
8787 ) {
8888 return false ;
8989 }
0 commit comments