From c5c58f5bf82bf1cd6782d66e08d22af41de8e8f7 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Wed, 8 Sep 2021 05:48:48 -0700 Subject: Improve the thriftcheck handler pattern (#3893) More recent versions of thriftcheck use a more compliant GCC-style output format which includes a space before the "severity" group. This matches similar tools, like shellcheck. This change adjusts the handler's pattern to parse this format in a backwards-compatible way (even though backwards compatibility isn't critical long-term as thriftcheck itself is close to its 1.0 release). --- test/handler/test_thriftcheck_handler.vader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/handler/test_thriftcheck_handler.vader b/test/handler/test_thriftcheck_handler.vader index efe62593..e80e5050 100644 --- a/test/handler/test_thriftcheck_handler.vader +++ b/test/handler/test_thriftcheck_handler.vader @@ -23,6 +23,6 @@ Execute(The thriftcheck handler should handle basic warnings and errors): \ }, \ ], \ ale_linters#thrift#thriftcheck#Handle(1, [ - \ 'file.thrift:1:1:error: "py" namespace must match "^idl\\." (namespace.pattern)', - \ 'file.thrift:3:5:warning: 64-bit integer constant -2147483649 may not work in all languages (int.64bit)', + \ 'file.thrift:1:1: error: "py" namespace must match "^idl\\." (namespace.pattern)', + \ 'file.thrift:3:5: warning: 64-bit integer constant -2147483649 may not work in all languages (int.64bit)', \ ]) -- cgit v1.2.3