Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NoQA] compiler: --json option to healthcheck CLI #45915

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: count only unique cases
kirillzyusko committed Jul 22, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
nsoranzo Nicola Soranzo
commit b480223265350d6298783dfb2f48f22cceecc6b9
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/node_modules/react-compiler-healthcheck/dist/index.js b/node_modules/react-compiler-healthcheck/dist/index.js
index 4bf23db..386aa76 100755
index 4bf23db..f7dfdf6 100755
--- a/node_modules/react-compiler-healthcheck/dist/index.js
+++ b/node_modules/react-compiler-healthcheck/dist/index.js
@@ -69154,16 +69154,28 @@ var reactCompilerCheck = {
@@ -28,7 +28,7 @@ index 4bf23db..386aa76 100755
+ if (json) {
+ const extractFileName = (output) => output.fnLoc.filename;
+ const successfulFiles = SucessfulCompilation.map(extractFileName);
+ const unsuccessfulFiles = [...OtherFailures, ...ActionableFailures].map(extractFileName);
+ const unsuccessfulFiles = [...new Set([...OtherFailures, ...ActionableFailures].map(extractFileName))];
+ console.log({
+ success: successfulFiles,
+ failure: unsuccessfulFiles,