From cef18d7335cc533dae0d74762d3fd6cdfb029d8f Mon Sep 17 00:00:00 2001 From: Tanya Scales Date: Thu, 21 Sep 2023 16:05:17 -0400 Subject: [PATCH] Removing logger grouping from output Adding deprecated module category to allowed output --- validate.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/validate.js b/validate.js index 9c38c67..f9779fc 100644 --- a/validate.js +++ b/validate.js @@ -32,6 +32,7 @@ async function lint(accountId, filepath, callback) { return result; } const validation = await validateHubl(accountId, source); + const result = { file, validation, @@ -59,15 +60,13 @@ function printHublValidationResult({ file, validation }) { if (!errors.length) { return count; } - logger.group(file); errors.forEach(err => { - if (err.reason !== 'SYNTAX_ERROR') { + if (err.reason !== 'SYNTAX_ERROR' && err.category !== 'DEPRECATED_MODULE') { return; } ++count; printHublValidationError(err); }); - logger.groupEnd(file); return count; }