From dee869dd04b3c9469ae89339c47fe999f7498d27 Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Mon, 8 Aug 2022 14:13:02 -0700 Subject: [PATCH] Consider new fields from `hh_client --json --lint` output as backward compatible (#501) --- src/Linters/HHClientLintError.hack | 1 + src/Linters/HHClientLinter.hack | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Linters/HHClientLintError.hack b/src/Linters/HHClientLintError.hack index 27bb739ed..4cbfe135f 100644 --- a/src/Linters/HHClientLintError.hack +++ b/src/Linters/HHClientLintError.hack @@ -26,6 +26,7 @@ final class HHClientLintError implements LintError { 'bypass_changed_lines' => bool, 'original' => string, 'replacement' => string, + ... ); public function __construct( diff --git a/src/Linters/HHClientLinter.hack b/src/Linters/HHClientLinter.hack index 4fe097b7a..71023d551 100644 --- a/src/Linters/HHClientLinter.hack +++ b/src/Linters/HHClientLinter.hack @@ -63,6 +63,7 @@ final class HHClientLinter implements Linter { const type TJSONResult = shape( 'errors' => vec, 'version' => string, + ... ); private static function blameCode(