diff --git a/src/Linters/SingleRuleLinter.hack b/src/Linters/SingleRuleLinter.hack index bbfca8b0..3251a9f0 100644 --- a/src/Linters/SingleRuleLinter.hack +++ b/src/Linters/SingleRuleLinter.hack @@ -101,10 +101,9 @@ abstract class SingleRuleLinter implements LintRule, Linter { * Is this linter error disabled for the entire file? * Memoized since this should not change per run. */ - <<__Memoize>> public function isLinterSuppressedForFile(): bool { - return Str\contains( - $this->getFile()->getContents(), + return C\contains_key( + $this->getFile()->lintMarkers(), $this->getIgnoreAllMarker(), ); }