react-doctor 0.9.22-dev.654e650 → 0.9.22-dev.94a349b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{build-section-divider-CwJH1xmI.js → build-section-divider-D4IZiN2V.js} +5 -5
- package/dist/{ci-lMJFR8-4.js → ci-vLkDpEHY.js} +13 -13
- package/dist/cli.js +25 -25
- package/dist/{constants-lt2tTZjE.js → constants-BXG_-QEi.js} +5 -5
- package/dist/{constants-DNh19qg9.js → constants-T2clfs7L.js} +4 -4
- package/dist/{design-0WVNDO9a.js → design-DuK0B3VL.js} +4 -4
- package/dist/duplicate-jsx-worker.js +17 -10
- package/dist/{exit-gracefully-w3YrR6j_.js → exit-gracefully-fGL88YR2.js} +6 -6
- package/dist/{handle-error-CZm13E2B.js → handle-error-DY0LwSgn.js} +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +100 -33
- package/dist/{inspect-VzubY7F6.js → inspect-CZYwnddx.js} +16 -16
- package/dist/{install-BEVfbOfg.js → install-C2NUN0DI.js} +10 -10
- package/dist/{install-doctor-script-C2It5M7w.js → install-doctor-script-B7uHQGTE.js} +5 -5
- package/dist/{install-github-workflow-u_2rbfq5.js → install-github-workflow-DvPU6iRP.js} +6 -6
- package/dist/{install-react-doctor-CMQPcoEO.js → install-react-doctor-YlCFF9NB.js} +9 -9
- package/dist/{is-cache-globally-disabled-af0VF8nQ.js → is-cache-globally-disabled-9hFWw6_L.js} +4 -4
- package/dist/{jsx-runtime-Dr3x6KP8.js → jsx-runtime-D5T315Ni.js} +6 -6
- package/dist/oxlint-worker.js +1 -1
- package/dist/{print-branded-header-DplFGjYd.js → print-branded-header-gCVNBMIM.js} +4 -4
- package/dist/project-analysis-worker.js +1 -1
- package/dist/{prompt-runtime-scan-url-BjMsssHe.js → prompt-runtime-scan-url-CkygS7ib.js} +5 -5
- package/dist/{read-object-file-BxwFJchD.js → read-object-file-C0DIkO3x.js} +4 -4
- package/dist/{record-metric-AFr0Yu89.js → record-metric-DEkif2lv.js} +91 -35
- package/dist/{report-error-kuxNlGQx.js → report-error-BZL-IQCa.js} +6 -6
- package/dist/{report-workflow-result-RTvTg6Pf.js → report-workflow-result-nqMC7kU6.js} +6 -6
- package/dist/{resolve-scan-exit-code-DSgZArqU.js → resolve-scan-exit-code-Ckg6q3g0.js} +41 -30
- package/dist/{resolve-scope-C-Tm5Ryp.js → resolve-scope-jWFQ1kH0.js} +6 -6
- package/dist/{rules-DzggRH6U.js → rules-PmrBem9A.js} +7 -7
- package/dist/{run-scan-app-BJUmhA3q.js → run-scan-app-DoURND_O.js} +11 -11
- package/dist/{runtime-scan-DHtU5yoc.js → runtime-scan-9Yp5o5j7.js} +10 -10
- package/dist/{sanitize-runtime-url-B3pkj7Yu.js → sanitize-runtime-url-bPuowHo4.js} +4 -4
- package/dist/{scan-C5Igr4c8.js → scan-BsTbTUzO.js} +10 -10
- package/dist/{should-skip-prompts-COTLQds4.js → should-skip-prompts-DNPIZchh.js} +4 -4
- package/dist/{should-use-tui-DiLWHBew.js → should-use-tui-CyQ6v9j5.js} +4 -4
- package/dist/skills/react-doctor/references/explain.md +5 -0
- package/dist/{start-scan-preamble-CQy0CKXS.js → start-scan-preamble-DTCdY3lc.js} +5 -5
- package/dist/start-scan-preamble.js +3 -3
- package/dist/{telemetry-runtime-DVsOeCQp.js → telemetry-runtime-B8SC2bBd.js} +7 -7
- package/dist/{version-DzAw3LOo.js → version-DDkM0eeC.js} +5 -5
- package/dist/{why-CF7qDIc1.js → why-WPP8ILWZ.js} +4 -4
- package/dist/{with-run-span-CFRc85Ss.js → with-run-span-CoVguga6.js} +6 -6
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a0abf7ee-eb6b-5f63-a421-f7cb1509905c")}catch(e){}}();
|
|
3
3
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
4
|
-
import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-
|
|
5
|
-
import { a as useExitOnCtrlC, c as Spinner, d as useInput, h as Box, i as import_react, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime } from "./jsx-runtime-
|
|
4
|
+
import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-bPuowHo4.js";
|
|
5
|
+
import { a as useExitOnCtrlC, c as Spinner, d as useInput, h as Box, i as import_react, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime } from "./jsx-runtime-D5T315Ni.js";
|
|
6
6
|
import * as http from "node:http";
|
|
7
7
|
//#region src/cli/runtime-scan/detect-local-runtime-urls.ts
|
|
8
8
|
const LOCAL_HTTP_HOSTS = ["127.0.0.1", "::1"];
|
|
@@ -236,5 +236,5 @@ const promptRuntimeScanUrl = () => new Promise((resolve) => {
|
|
|
236
236
|
//#endregion
|
|
237
237
|
export { promptRuntimeScanUrl };
|
|
238
238
|
|
|
239
|
-
//# sourceMappingURL=prompt-runtime-scan-url-
|
|
240
|
-
//# debugId=
|
|
239
|
+
//# sourceMappingURL=prompt-runtime-scan-url-CkygS7ib.js.map
|
|
240
|
+
//# debugId=a0abf7ee-eb6b-5f63-a421-f7cb1509905c
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import {
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5241f459-3bc4-5578-bd71-d34d9d3a4af9")}catch(e){}}();
|
|
3
|
+
import { Kn as isPlainObject } from "./record-metric-DEkif2lv.js";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import { parseJSON5 } from "confbox";
|
|
6
6
|
//#region src/cli/utils/read-object-file.ts
|
|
@@ -20,5 +20,5 @@ const readObjectFile = (filePath) => {
|
|
|
20
20
|
//#endregion
|
|
21
21
|
export { readObjectFile as t };
|
|
22
22
|
|
|
23
|
-
//# sourceMappingURL=read-object-file-
|
|
24
|
-
//# debugId=
|
|
23
|
+
//# sourceMappingURL=read-object-file-C0DIkO3x.js.map
|
|
24
|
+
//# debugId=5241f459-3bc4-5578-bd71-d34d9d3a4af9
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="57e18aac-a37c-5ad4-b655-053bae056167")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
|
-
import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-
|
|
4
|
+
import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-BXG_-QEi.js";
|
|
5
5
|
import { n as require_picomatch, t as require_semver } from "./semver-BZIuy1gP.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import * as fs$1$2 from "node:fs";
|
|
@@ -20,7 +20,7 @@ import { Worker } from "node:worker_threads";
|
|
|
20
20
|
import { parseSync } from "oxc-parser";
|
|
21
21
|
import * as fs$1$1 from "node:fs/promises";
|
|
22
22
|
import { ResolverFactory } from "oxc-resolver";
|
|
23
|
-
import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_BRIDGE_RULES, REACT_COMPILER_RULES, REACT_DOCTOR_OPT_IN_PROJECT_RULE_IDS, REACT_DOCTOR_PROJECT_RULES, REACT_DOCTOR_RULES, REACT_DOCTOR_RULE_REGISTRY, REACT_DOCTOR_SCAN_RULES, atomicWriteFile, classifySecurityScanFile, collectCrossFileDependencyProbes, getDiagnosticContextPath, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
|
|
23
|
+
import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, EXTERNAL_RULES, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_BRIDGE_RULES, REACT_COMPILER_RULES, REACT_DOCTOR_OPT_IN_PROJECT_RULE_IDS, REACT_DOCTOR_PROJECT_RULES, REACT_DOCTOR_RULES, REACT_DOCTOR_RULE_REGISTRY, REACT_DOCTOR_SCAN_RULES, atomicWriteFile, classifySecurityScanFile, collectCrossFileDependencyProbes, getDiagnosticContextPath, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
|
|
24
24
|
import { parseJSON5, parseJSONC } from "confbox";
|
|
25
25
|
import { createJiti } from "jiti";
|
|
26
26
|
import { PassThrough } from "node:stream";
|
|
@@ -88,7 +88,7 @@ const unwrapTypescriptExpression = (expression) => {
|
|
|
88
88
|
return currentExpression;
|
|
89
89
|
};
|
|
90
90
|
//#endregion
|
|
91
|
-
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-
|
|
91
|
+
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-4V2mjeuI.js
|
|
92
92
|
var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
|
|
93
93
|
const LINGUIST_ATTRIBUTES = ["linguist-generated", "linguist-vendored"];
|
|
94
94
|
const DISABLED_ATTRIBUTE_VALUES = new Set([
|
|
@@ -526,7 +526,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
|
|
|
526
526
|
return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
|
|
527
527
|
};
|
|
528
528
|
//#endregion
|
|
529
|
-
//#region ../core/dist/detect-duplicate-jsx-subtrees-
|
|
529
|
+
//#region ../core/dist/detect-duplicate-jsx-subtrees-C_1028bX.js
|
|
530
530
|
const yieldToEventLoop = () => new Promise((resolve) => {
|
|
531
531
|
setImmediate(resolve);
|
|
532
532
|
});
|
|
@@ -651,7 +651,7 @@ const resolveOptions$1 = (options) => ({
|
|
|
651
651
|
minimumDistinctFiles: options.minimumDistinctFiles ?? 1,
|
|
652
652
|
maxSourceFiles: options.budget?.maxSourceFiles ?? 5e3,
|
|
653
653
|
maxSourceLengthChars: options.budget?.maxSourceLengthChars ?? 1e6,
|
|
654
|
-
maxJsxNodes: options.budget?.maxJsxNodes ??
|
|
654
|
+
maxJsxNodes: options.budget?.maxJsxNodes ?? 5e5,
|
|
655
655
|
maxFamilies: options.budget?.maxFamilies ?? 20
|
|
656
656
|
});
|
|
657
657
|
const hashParts = (parts) => {
|
|
@@ -865,10 +865,12 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
865
865
|
const jsxNodes = [];
|
|
866
866
|
const pendingNodes = [sourceFile];
|
|
867
867
|
let limitExceeded = false;
|
|
868
|
+
let observedJsxNodeCount = 0;
|
|
868
869
|
while (pendingNodes.length > 0 && !limitExceeded && !signal?.aborted) {
|
|
869
870
|
const currentNode = pendingNodes.pop();
|
|
870
871
|
if (currentNode === void 0) continue;
|
|
871
872
|
if (isJsxSubtreeNode(currentNode)) {
|
|
873
|
+
observedJsxNodeCount += 1;
|
|
872
874
|
if (jsxNodes.length >= maximumCandidateCount) {
|
|
873
875
|
limitExceeded = true;
|
|
874
876
|
continue;
|
|
@@ -884,7 +886,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
884
886
|
if (limitExceeded || signal?.aborted) return {
|
|
885
887
|
candidates: [],
|
|
886
888
|
aborted: signal?.aborted ?? false,
|
|
887
|
-
limitExceeded
|
|
889
|
+
limitExceeded,
|
|
890
|
+
observedJsxNodeCount
|
|
888
891
|
};
|
|
889
892
|
const metadataByNode = /* @__PURE__ */ new Map();
|
|
890
893
|
const functionIdentityByNode = /* @__PURE__ */ new Map();
|
|
@@ -892,7 +895,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
892
895
|
if (signal?.aborted) return {
|
|
893
896
|
candidates: [],
|
|
894
897
|
aborted: true,
|
|
895
|
-
limitExceeded: false
|
|
898
|
+
limitExceeded: false,
|
|
899
|
+
observedJsxNodeCount
|
|
896
900
|
};
|
|
897
901
|
buildJsxSubtreeMetadata(jsxNodes[nodeIndex], metadataByNode);
|
|
898
902
|
}
|
|
@@ -910,7 +914,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
910
914
|
};
|
|
911
915
|
}),
|
|
912
916
|
aborted: false,
|
|
913
|
-
limitExceeded: false
|
|
917
|
+
limitExceeded: false,
|
|
918
|
+
observedJsxNodeCount
|
|
914
919
|
};
|
|
915
920
|
};
|
|
916
921
|
const scanSource = (input) => {
|
|
@@ -947,8 +952,7 @@ const scanSource = (input) => {
|
|
|
947
952
|
incompleteReason: {
|
|
948
953
|
kind: "jsx-node-limit",
|
|
949
954
|
limit: input.options.maxJsxNodes,
|
|
950
|
-
observed: input.
|
|
951
|
-
path: input.source.path
|
|
955
|
+
observed: input.scannedJsxNodeCount + collectedCandidates.observedJsxNodeCount
|
|
952
956
|
},
|
|
953
957
|
didAbort: false,
|
|
954
958
|
didScan: false
|
|
@@ -1065,7 +1069,10 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
|
|
|
1065
1069
|
scannedSourceFileCount,
|
|
1066
1070
|
scannedJsxNodeCount
|
|
1067
1071
|
});
|
|
1068
|
-
if (scannedSource.incompleteReason !== null)
|
|
1072
|
+
if (scannedSource.incompleteReason !== null) {
|
|
1073
|
+
incompleteReasons.push(scannedSource.incompleteReason);
|
|
1074
|
+
if (scannedSource.incompleteReason.kind === "jsx-node-limit") break;
|
|
1075
|
+
}
|
|
1069
1076
|
if (scannedSource.didScan) {
|
|
1070
1077
|
candidates.push(...scannedSource.candidates);
|
|
1071
1078
|
scannedJsxNodeCount += scannedSource.candidates.length;
|
|
@@ -1083,7 +1090,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
|
|
|
1083
1090
|
});
|
|
1084
1091
|
};
|
|
1085
1092
|
//#endregion
|
|
1086
|
-
//#region ../core/dist/detect-react-compiler-
|
|
1093
|
+
//#region ../core/dist/detect-react-compiler-CTfHP-jI.js
|
|
1087
1094
|
const NEXT_CONFIG_FILENAMES = [
|
|
1088
1095
|
"next.config.js",
|
|
1089
1096
|
"next.config.mjs",
|
|
@@ -67797,6 +67804,13 @@ const DEFAULT_SURFACE_EXCLUDED_TAGS = {
|
|
|
67797
67804
|
ciFailure: ["design"]
|
|
67798
67805
|
};
|
|
67799
67806
|
const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
67807
|
+
const KNOWN_RULE_KEYS = new Set([...ALL_REACT_DOCTOR_RULE_KEYS, ...EXTERNAL_RULES.map((rule) => rule.key)]);
|
|
67808
|
+
const BUNDLED_RULE_NAMESPACES = new Set([...KNOWN_RULE_KEYS].flatMap(getEquivalentRuleKeys).map((key) => key.slice(0, key.lastIndexOf("/"))));
|
|
67809
|
+
const getUnknownBundledRuleKeys = (rules) => Object.keys(rules ?? {}).filter((key) => {
|
|
67810
|
+
const canonicalKey = canonicalizeUserRuleKey(key);
|
|
67811
|
+
const namespace = canonicalKey.slice(0, canonicalKey.lastIndexOf("/"));
|
|
67812
|
+
return BUNDLED_RULE_NAMESPACES.has(namespace) && !KNOWN_RULE_KEYS.has(canonicalKey);
|
|
67813
|
+
});
|
|
67800
67814
|
const VALID_RULE_SEVERITIES = [
|
|
67801
67815
|
"error",
|
|
67802
67816
|
"warn",
|
|
@@ -67981,6 +67995,7 @@ const validateConfigTypes = (config) => {
|
|
|
67981
67995
|
applyFieldValidator(config, validated, "surfaces", validateSurfacesField);
|
|
67982
67996
|
for (const fieldName of SEVERITY_FIELD_NAMES) applyFieldValidator(config, validated, fieldName, (value) => validateSeverityMap(fieldName, value, fieldName === "categories"));
|
|
67983
67997
|
applyFieldValidator(config, validated, "plugins", (value) => validateStringArrayField("plugins", value));
|
|
67998
|
+
for (const ruleKey of getUnknownBundledRuleKeys(validated.rules)) warnConfigIssue(`config field "rules.${ruleKey}" is not a known bundled rule; this override has no effect. Run "react-doctor rules list" to find its rule ID.`);
|
|
67984
67999
|
return validated;
|
|
67985
68000
|
};
|
|
67986
68001
|
const warn = (message) => {
|
|
@@ -70161,15 +70176,23 @@ const createSecurityScanSession = (rootDirectory, options) => {
|
|
|
70161
70176
|
const rule = entry.rule;
|
|
70162
70177
|
const scan = rule.scan;
|
|
70163
70178
|
if (typeof scan !== "function") return [];
|
|
70179
|
+
const explicitRuleOverride = resolveRuleSeverityOverride({ ruleKey: entry.key }, options.severityControls);
|
|
70180
|
+
const severityOverride = explicitRuleOverride ?? resolveRuleSeverityOverride({
|
|
70181
|
+
ruleKey: entry.key,
|
|
70182
|
+
category: "Security"
|
|
70183
|
+
}, options.severityControls);
|
|
70184
|
+
if (severityOverride === "off") return [];
|
|
70164
70185
|
if (!shouldEnableRuleByDefaultStatus({
|
|
70165
70186
|
defaultEnabled: rule.defaultEnabled,
|
|
70166
70187
|
includeTagDefaults: options.includeTagDefaults === true,
|
|
70167
|
-
hasIncludedTags: includedTags.size > 0
|
|
70188
|
+
hasIncludedTags: includedTags.size > 0,
|
|
70189
|
+
hasExplicitOverride: explicitRuleOverride !== void 0
|
|
70168
70190
|
})) return [];
|
|
70169
70191
|
if (!shouldEnableRule(rule.requires, rule.tags, capabilities, ignoredTags, rule.disabledWhen, includedTags)) return [];
|
|
70170
70192
|
return [{
|
|
70171
70193
|
entry,
|
|
70172
70194
|
scan,
|
|
70195
|
+
severityOverride,
|
|
70173
70196
|
committedFilesOnly: rule.committedFilesOnly === true
|
|
70174
70197
|
}];
|
|
70175
70198
|
});
|
|
@@ -70187,10 +70210,13 @@ const createSecurityScanSession = (rootDirectory, options) => {
|
|
|
70187
70210
|
};
|
|
70188
70211
|
const scanFileByRule = function* (file) {
|
|
70189
70212
|
if (file === null) return;
|
|
70190
|
-
for (const { entry, scan, committedFilesOnly } of enabledScanRules) {
|
|
70213
|
+
for (const { entry, scan, severityOverride, committedFilesOnly } of enabledScanRules) {
|
|
70191
70214
|
for (const finding of scan(file)) {
|
|
70192
70215
|
if (committedFilesOnly && isFileGitIgnored(file)) continue;
|
|
70193
|
-
const diagnostic = buildSecurityScanDiagnostic(finding
|
|
70216
|
+
const diagnostic = buildSecurityScanDiagnostic(severityOverride === void 0 ? finding : {
|
|
70217
|
+
...finding,
|
|
70218
|
+
severity: severityOverride
|
|
70219
|
+
}, entry, file.relativePath);
|
|
70194
70220
|
const key = `${diagnostic.rule}:${diagnostic.filePath}:${diagnostic.line}:${diagnostic.column}:${diagnostic.message}`;
|
|
70195
70221
|
if (seen.has(key)) continue;
|
|
70196
70222
|
seen.add(key);
|
|
@@ -72101,7 +72127,7 @@ const normalizeConfigForHash = (config) => {
|
|
|
72101
72127
|
if (Array.isArray(clone?.jsPlugins)) clone.jsPlugins = clone.jsPlugins.map((_, index) => `<plugin:${index}>`);
|
|
72102
72128
|
return clone;
|
|
72103
72129
|
};
|
|
72104
|
-
const computeRulesetHash = (input) => crypto.createHash("sha1").update(JSON.stringify(normalizeConfigForHash(input.config))).update("\0").update([...input.toolchainVersions].join("\0")).update("\0").update([...input.ignorePatterns].join("\n")).update("\0").update(input.tsconfigContent ?? "").update("\0").update(input.respectInlineDisables ? "respect-inline-disables" : "audit-mode").digest("hex");
|
|
72130
|
+
const computeRulesetHash = (input) => crypto.createHash("sha1").update("project-bulk-suppressions-isolated\0").update(JSON.stringify(normalizeConfigForHash(input.config))).update("\0").update([...input.toolchainVersions].join("\0")).update("\0").update([...input.ignorePatterns].join("\n")).update("\0").update(input.tsconfigContent ?? "").update("\0").update(input.respectInlineDisables ? "respect-inline-disables" : "audit-mode").digest("hex");
|
|
72105
72131
|
/**
|
|
72106
72132
|
* Loads a plugin module via the local require resolver and extracts
|
|
72107
72133
|
* `(name, ruleNames)` from either `module.exports.meta + rules` or
|
|
@@ -74256,33 +74282,58 @@ const spawnLintBatches = async (input) => {
|
|
|
74256
74282
|
}
|
|
74257
74283
|
const batchArgs = [...baseArgs, ...batch];
|
|
74258
74284
|
try {
|
|
74259
|
-
const spawnBatch = () => {
|
|
74285
|
+
const spawnBatch = async () => {
|
|
74260
74286
|
const effectiveSpawnTimeoutMs = resolveSpawnTimeoutMs();
|
|
74261
74287
|
if (effectiveSpawnTimeoutMs === 0) {
|
|
74262
74288
|
deadlineSkippedFiles.push(...batch);
|
|
74263
74289
|
batchState.deadlineSkippedFileCount += batch.length;
|
|
74264
|
-
return
|
|
74290
|
+
return null;
|
|
74291
|
+
}
|
|
74292
|
+
const onStart = () => {
|
|
74293
|
+
if (batchState.didStart) return;
|
|
74294
|
+
batchState.didStart = true;
|
|
74295
|
+
startedFileCount += batchState.initialFileCount;
|
|
74296
|
+
reportBatchStarted(passBatches.length);
|
|
74297
|
+
};
|
|
74298
|
+
let argumentsList = batchArgs;
|
|
74299
|
+
if (input.workingDirectory !== void 0) {
|
|
74300
|
+
const selectedFiles = (await spawnOxlint([
|
|
74301
|
+
...baseArgs,
|
|
74302
|
+
"--debug",
|
|
74303
|
+
"files",
|
|
74304
|
+
...batch
|
|
74305
|
+
], rootDirectory, nodeBinaryPath, effectiveSpawnTimeoutMs, outputMaxBytes, signal, onStart)).split(/\r?\n/).filter(Boolean).map((filePath) => path$1$1.resolve(rootDirectory, filePath));
|
|
74306
|
+
if (selectedFiles.length === 0) return JSON.stringify({ diagnostics: [] });
|
|
74307
|
+
argumentsList = [
|
|
74308
|
+
...baseArgs,
|
|
74309
|
+
"--no-ignore",
|
|
74310
|
+
...selectedFiles
|
|
74311
|
+
];
|
|
74265
74312
|
}
|
|
74266
74313
|
return runOxlintJob({
|
|
74267
|
-
argumentsList
|
|
74268
|
-
rootDirectory,
|
|
74314
|
+
argumentsList,
|
|
74315
|
+
rootDirectory: input.workingDirectory ?? rootDirectory,
|
|
74269
74316
|
nodeBinaryPath,
|
|
74270
74317
|
spawnTimeoutMs: effectiveSpawnTimeoutMs ?? 6e4,
|
|
74271
74318
|
outputMaxBytes: outputMaxBytes ?? 52428800,
|
|
74272
74319
|
maxWorkers: requestedConcurrency,
|
|
74273
74320
|
filesystemCacheEpoch: input.spawnSlots?.filesystemCacheEpoch ?? null,
|
|
74274
74321
|
abortSignal: signal,
|
|
74275
|
-
onStart
|
|
74276
|
-
if (batchState.didStart) return;
|
|
74277
|
-
batchState.didStart = true;
|
|
74278
|
-
startedFileCount += batchState.initialFileCount;
|
|
74279
|
-
reportBatchStarted(passBatches.length);
|
|
74280
|
-
}
|
|
74322
|
+
onStart
|
|
74281
74323
|
});
|
|
74282
74324
|
};
|
|
74283
74325
|
const stdout = input.spawnSlots === void 0 ? await spawnBatch() : await input.spawnSlots.run(spawnBatch, signal);
|
|
74284
74326
|
if (stdout === null) return [];
|
|
74285
|
-
|
|
74327
|
+
const diagnostics = parseOxlintOutput(stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath, input.diagnosticContextDirectory);
|
|
74328
|
+
if (input.workingDirectory === void 0) return diagnostics;
|
|
74329
|
+
return diagnostics.map((diagnostic) => ({
|
|
74330
|
+
...diagnostic,
|
|
74331
|
+
filePath: toNormalizedRelativePath(diagnostic.filePath, rootDirectory),
|
|
74332
|
+
...diagnostic.relatedLocations ? { relatedLocations: diagnostic.relatedLocations.map((location) => ({
|
|
74333
|
+
...location,
|
|
74334
|
+
filePath: toNormalizedRelativePath(location.filePath, rootDirectory)
|
|
74335
|
+
})) } : {}
|
|
74336
|
+
}));
|
|
74286
74337
|
} catch (error) {
|
|
74287
74338
|
if (!isSplittableReactDoctorError(error)) throw error;
|
|
74288
74339
|
if (isPastDeadline()) {
|
|
@@ -75010,6 +75061,7 @@ const runOxlint = async (options) => {
|
|
|
75010
75061
|
const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
|
|
75011
75062
|
const configDirectory = fs$1$2.mkdtempSync(path$1$1.join(os.tmpdir(), "react-doctor-oxlintrc-"));
|
|
75012
75063
|
const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
|
|
75064
|
+
const workingDirectory = fs$1$2.existsSync(path$1$1.join(rootDirectory, "oxlint-suppressions.json")) ? configDirectory : void 0;
|
|
75013
75065
|
try {
|
|
75014
75066
|
const diagnosticContextDirectory = path$1$1.join(configDirectory, "contexts");
|
|
75015
75067
|
fs$1$2.mkdirSync(diagnosticContextDirectory);
|
|
@@ -75019,7 +75071,7 @@ const runOxlint = async (options) => {
|
|
|
75019
75071
|
if (project.hasTypeScript) {
|
|
75020
75072
|
const tsconfigRelativePath = resolveTsConfigRelativePath(rootDirectory);
|
|
75021
75073
|
if (tsconfigRelativePath) {
|
|
75022
|
-
sharedArgs.push("--tsconfig", tsconfigRelativePath);
|
|
75074
|
+
sharedArgs.push("--tsconfig", path$1$1.resolve(rootDirectory, tsconfigRelativePath));
|
|
75023
75075
|
try {
|
|
75024
75076
|
tsconfigContent = fs$1$2.readFileSync(path$1$1.resolve(rootDirectory, tsconfigRelativePath), "utf8");
|
|
75025
75077
|
} catch {
|
|
@@ -75108,6 +75160,7 @@ const runOxlint = async (options) => {
|
|
|
75108
75160
|
return spawnLintBatches({
|
|
75109
75161
|
baseArgs: passBaseArgs,
|
|
75110
75162
|
fileBatches: passFileBatches,
|
|
75163
|
+
workingDirectory,
|
|
75111
75164
|
rootDirectory,
|
|
75112
75165
|
nodeBinaryPath,
|
|
75113
75166
|
project: lintProject,
|
|
@@ -75336,6 +75389,7 @@ const runOxlint = async (options) => {
|
|
|
75336
75389
|
const runBatches = () => spawnLintBatches({
|
|
75337
75390
|
baseArgs,
|
|
75338
75391
|
fileBatches,
|
|
75392
|
+
workingDirectory,
|
|
75339
75393
|
rootDirectory,
|
|
75340
75394
|
nodeBinaryPath,
|
|
75341
75395
|
project: lintProject,
|
|
@@ -76327,7 +76381,8 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
76327
76381
|
return filteredDiagnostic === null ? none() : some(filteredDiagnostic);
|
|
76328
76382
|
})));
|
|
76329
76383
|
const applyPerElementPipeline = (rawStream) => filterPerElementPipeline(rawStream).pipe(tap((diagnostic) => reporterService.emit(diagnostic)));
|
|
76330
|
-
const
|
|
76384
|
+
const severityControls = buildRuleSeverityControls(resolvedConfig.config);
|
|
76385
|
+
const pnpmHardeningSeverity = resolveRuleSeverityOverride({ ruleKey: "react-doctor/require-pnpm-hardening" }, severityControls);
|
|
76331
76386
|
const envCollected = yield* runCollect(applyPerElementPipeline(fromIterable$1(isDiffMode ? [] : [
|
|
76332
76387
|
...checkReducedMotion(scanDirectory),
|
|
76333
76388
|
...pnpmHardeningSeverity === "warn" || pnpmHardeningSeverity === "error" ? checkPnpmHardening(scanDirectory) : [],
|
|
@@ -76339,6 +76394,7 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
76339
76394
|
let didSecurityScanReachDeadline = false;
|
|
76340
76395
|
const securityScanFiber = yield* forkChild(runCollect(applyPerElementPipeline(isDiffMode ? empty$4 : unwrap(tryPromise((signal) => checkSecurityScanCooperative(scanDirectory, {
|
|
76341
76396
|
project,
|
|
76397
|
+
severityControls,
|
|
76342
76398
|
ignoredTags: input.ignoredTags,
|
|
76343
76399
|
includedTags: input.includedTags,
|
|
76344
76400
|
includeTagDefaults: input.includeTagDefaults,
|
|
@@ -76386,7 +76442,7 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
76386
76442
|
const maintainabilityPhaseTimeoutMs = yield* DeadCodePhaseTimeoutMs;
|
|
76387
76443
|
const workerCountSuffix = scanConcurrency > 1 ? ` ${highlighter.dim(`[~${scanConcurrency} workers]`)}` : "";
|
|
76388
76444
|
const projectCapabilities = getCapabilities(project);
|
|
76389
|
-
const projectRuleSelections = resolveProjectRuleSelections(
|
|
76445
|
+
const projectRuleSelections = resolveProjectRuleSelections(severityControls).filter((selection) => {
|
|
76390
76446
|
const rule = REACT_DOCTOR_RULE_REGISTRY[selection.ruleId];
|
|
76391
76447
|
return rule !== void 0 && shouldEnableRule(rule.requires, rule.tags, projectCapabilities, input.ignoredTags, rule.disabledWhen, input.includedTags) && (selection.ruleId === "duplicate-jsx-subtree" ? input.runDeadCode : !isDiffMode) && (showWarnings || projectRuleSelectionsMaySurfaceWhenWarningsAreHidden([selection]));
|
|
76392
76448
|
});
|
|
@@ -77611,7 +77667,7 @@ const makeNoopConsole = () => ({
|
|
|
77611
77667
|
});
|
|
77612
77668
|
//#endregion
|
|
77613
77669
|
//#region src/cli/utils/version.ts
|
|
77614
|
-
const VERSION = "0.9.22-dev.
|
|
77670
|
+
const VERSION = "0.9.22-dev.94a349b";
|
|
77615
77671
|
//#endregion
|
|
77616
77672
|
//#region src/cli/utils/json-mode.ts
|
|
77617
77673
|
let context = null;
|
|
@@ -77953,7 +78009,7 @@ const recordDistribution = (name, value, options = {}) => {
|
|
|
77953
78009
|
} catch {}
|
|
77954
78010
|
};
|
|
77955
78011
|
//#endregion
|
|
77956
|
-
export { buildRuleSeverityControls as $,
|
|
78012
|
+
export { buildRuleSeverityControls as $, runInspect as $t, Files as A, buildWithScope as An, hasPublishedFixRecipe as At, PerFileLintCacheEnabled as B, yieldToEventLoop as Bn, listSourceFiles as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, provideContext as Cn, getChangedLineRanges as Ct, isCodingAgentEnvironment as D, sync as Dn, getRuleMetadata as Dt, isCiOrCodingAgentEnvironment as E, runSync as En, getEquivalentRuleKeys as Et, Linter as F, makeUnsafe$5 as Fn, isProjectDiscoveryError as Ft, SidecarLintCacheEnabled as G, isFile as Gn, materializeSourceTree as Gt, Project as H, toCanonicalPath as Hn, listWorkspacePackages as Ht, Maintainability as I, fail$5 as In, isReactDoctorError as It, anonymizeInPlace as J, remainingDeadlineBudgetMs as Jt, StagedFiles as K, isPlainObject as Kn, mergeAndFilterDiagnostics as Kt, NodeResolver as L, void_$1 as Ln, isSameRuleKey as Lt, InvocationCaches as M, provide$2 as Mn, hashFileContents as Mt, LEGACY_CONFIG_FILENAME as N, succeed$3 as Nn, highlighter as Nt, Config as O, try_ as On, getUnknownBundledRuleKeys as Ot, LintPartialFailures as P, close as Pn, isPathInsideDirectory as Pt, buildRuleDocsUrl as Q, restoreLegacyThrow as Qt, OxlintConcurrency as R, ParentSpan as Rn, isScanComplete as Rt, isDebugFlagEnabled as S, provide as Sn, getBaselineDiffPlan as St, isCiEnvironment as T, runPromise as Tn, getDiffInfo as Tt, Reporter as U, isDirectory as Un, loadConfigWithSource as Ut, Progress as V, messageFromUnknown as Vn, listSourceFilesCooperative as Vt, Score as W, isErrnoException as Wn, mapWithConcurrency as Wt, atomicWriteJson as X, resolveLintBatchOrdering as Xt, anonymizeText as Y, resolveGithubActionsScoreMetadata as Yt, buildJsonReport as Z, resolveScanTarget as Zt, VERSION as _, gen as _n, findGitRepositoryRoot as _t, isEnvFlagEnabled as a, validateConfigTypes as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, orElseSucceed as bn, formatErrorChain as bt, setSentryProjectInfo as c, Console as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, log as dn, createOxlintSpawnSlots as dt, scrubSensitivePaths as en, buildSkippedChecks as et, setJsonReportDirectory as f, warn$1 as fn, detectAiTrainingEnvironment as ft, writeJsonReport as g, make$30 as gn, filterSourceFiles as gt, writeJsonErrorReport as h, decodeUnknownSync as hn, filterPathsOutsideDirectories as ht, isTelemetryEnabled as i, toRelativePath as in, clearConfigCache as it, Git as j, mergeAll$1 as jn, hasSupportedFrameworkOrLibrary as jt, DIAGNOSTIC_DELTA_IDENTITY as k, void_ as kn, groupBy as kt, getRunId as l, error as ln, createChangedLineMatcher as lt, writeJsonCancellationReport as m, JsonReport as mn, filterDiagnosticsForSurface as mt, recordDistribution as n, shouldUseMaintainabilityLayer as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, warmDuplicateJsxWorker as on, computeConfigFingerprint as ot, setJsonReportMode as p, Diagnostic as pn, discoverSupportedSubprojects as pt, SupplyChain as q, mergeReactDoctorConfigs as qt, toSpanAttributes as r, summarizeDiagnostics as rn, classifyFileContext as rt, buildSentryProjectContext as s, warmOxlintWorkerPool as sn, computeDiagnosticDelta as st, recordCount as t, setColorEnabled as tn, calculateScore as tt, enableJsonMode as u, info as un, createInvocationCaches as ut, makeNoopConsole as v, makeSpan$1 as vn, findLegacyConfig as vt, detectRunnerOs as w, provideService as wn, getDiagnosticRuleIdentity as wt, isGitHookEnvironment as x, promise as xn, formatReactDoctorError as xt, CliInputError as y, map$3 as yn, fingerprintDiagnosticEvidence as yt, OxlintSpawnSlots as z, isMonorepoRoot as zn, layerObservability as zt };
|
|
77957
78013
|
|
|
77958
|
-
//# sourceMappingURL=record-metric-
|
|
77959
|
-
//# debugId=
|
|
78014
|
+
//# sourceMappingURL=record-metric-DEkif2lv.js.map
|
|
78015
|
+
//# debugId=57e18aac-a37c-5ad4-b655-053bae056167
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-
|
|
4
|
-
import {
|
|
5
|
-
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="86ac1492-acf6-57ab-bc1e-c4bb22793d40")}catch(e){}}();
|
|
3
|
+
import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-BXG_-QEi.js";
|
|
4
|
+
import { It as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-DEkif2lv.js";
|
|
5
|
+
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-B8SC2bBd.js";
|
|
6
6
|
import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-Dewycxda.js";
|
|
7
7
|
//#region src/cli/utils/report-error.ts
|
|
8
8
|
/**
|
|
@@ -61,5 +61,5 @@ const reportErrorToSentry = async (error) => {
|
|
|
61
61
|
//#endregion
|
|
62
62
|
export { reportErrorToSentry as t };
|
|
63
63
|
|
|
64
|
-
//# sourceMappingURL=report-error-
|
|
65
|
-
//# debugId=
|
|
64
|
+
//# sourceMappingURL=report-error-BZL-IQCa.js.map
|
|
65
|
+
//# debugId=86ac1492-acf6-57ab-bc1e-c4bb22793d40
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-
|
|
4
|
-
import { t as recordCount } from "./record-metric-
|
|
5
|
-
import { u as isCommandAvailable } from "./install-github-workflow-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="81483047-1341-5fba-b689-48cdb2bf5012")}catch(e){}}();
|
|
3
|
+
import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-BXG_-QEi.js";
|
|
4
|
+
import { t as recordCount } from "./record-metric-DEkif2lv.js";
|
|
5
|
+
import { u as isCommandAvailable } from "./install-github-workflow-DvPU6iRP.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
@@ -289,5 +289,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
|
|
|
289
289
|
//#endregion
|
|
290
290
|
export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, loadAgentInstall as g, detectAvailableAgents as h, readPreference as i, CI_PITCH_EVENT as l, computeDefaultSelectedAgents as m, openUrl as n, runMigrations as o, SETUP_HINT_EVENT as p, isGatePending as r, writePreference as s, reportWorkflowResult as t, HANDOFF_TARGET_PREFERENCE_ID as u };
|
|
291
291
|
|
|
292
|
-
//# sourceMappingURL=report-workflow-result-
|
|
293
|
-
//# debugId=
|
|
292
|
+
//# sourceMappingURL=report-workflow-result-nqMC7kU6.js.map
|
|
293
|
+
//# debugId=81483047-1341-5fba-b689-48cdb2bf5012
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-
|
|
4
|
-
import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-
|
|
5
|
-
import { $ as buildRuleSeverityControls, A as Files,
|
|
6
|
-
import { t as getTelemetryContext } from "./telemetry-runtime-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="87461a4f-f16a-50ed-ae0f-04c9996a05a1")}catch(e){}}();
|
|
3
|
+
import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-BXG_-QEi.js";
|
|
4
|
+
import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-9hFWw6_L.js";
|
|
5
|
+
import { $ as buildRuleSeverityControls, $t as runInspect, A as Files, At as hasPublishedFixRecipe, B as PerFileLintCacheEnabled, Bn as yieldToEventLoop, Bt as listSourceFiles, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as provideContext, Dn as sync, Dt as getRuleMetadata, E as isCiOrCodingAgentEnvironment, En as runSync, F as Linter, G as SidecarLintCacheEnabled, Gn as isFile, Gt as materializeSourceTree, H as Project, Ht as listWorkspacePackages, I as Maintainability, It as isReactDoctorError, Jt as remainingDeadlineBudgetMs, Kt as mergeAndFilterDiagnostics, L as NodeResolver, M as InvocationCaches, Mt as hashFileContents, Nn as succeed, Nt as highlighter, O as Config, On as try_, Ot as getUnknownBundledRuleKeys, P as LintPartialFailures, Pt as isPathInsideDirectory, Q as buildRuleDocsUrl, Qt as restoreLegacyThrow, R as OxlintConcurrency, Rn as ParentSpan, Rt as isScanComplete, Sn as provide, T as isCiEnvironment, Tn as runPromise, U as Reporter, Un as isDirectory, V as Progress, Vt as listSourceFilesCooperative, W as Score, Wt as mapWithConcurrency, X as atomicWriteJson, Xt as resolveLintBatchOrdering, Yt as resolveGithubActionsScoreMetadata, Zt as resolveScanTarget, _ as VERSION, _n as gen, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as orElseSucceed, cn as Console, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as log, dt as createOxlintSpawnSlots, et as buildSkippedChecks, fn as warn, gt as filterSourceFiles, hn as decodeUnknownSync, ht as filterPathsOutsideDirectories, j as Git, jn as mergeAll, k as DIAGNOSTIC_DELTA_IDENTITY, kt as groupBy, l as getRunId, ln as error, lt as createChangedLineMatcher, mt as filterDiagnosticsForSurface, n as recordDistribution, nn as shouldUseMaintainabilityLayer, nt as canonicalizeUserRuleKey, on as warmDuplicateJsxWorker, ot as computeConfigFingerprint, pn as Diagnostic, pt as discoverSupportedSubprojects, q as SupplyChain, qt as mergeReactDoctorConfigs, r as toSpanAttributes, rn as summarizeDiagnostics, rt as classifyFileContext, sn as warmOxlintWorkerPool, st as computeDiagnosticDelta, t as recordCount, tt as calculateScore, ut as createInvocationCaches, v as makeNoopConsole, w as detectRunnerOs, wn as provideService, wt as getDiagnosticRuleIdentity, xn as promise, y as CliInputError, yn as map, yt as fingerprintDiagnosticEvidence, z as OxlintSpawnSlots, zn as isMonorepoRoot } from "./record-metric-DEkif2lv.js";
|
|
6
|
+
import { t as getTelemetryContext } from "./telemetry-runtime-B8SC2bBd.js";
|
|
7
7
|
import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
|
|
8
|
-
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-
|
|
8
|
+
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-D4IZiN2V.js";
|
|
9
9
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
10
10
|
import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
|
|
11
|
-
import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-
|
|
12
|
-
import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-
|
|
13
|
-
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-
|
|
14
|
-
import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-
|
|
15
|
-
import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-
|
|
11
|
+
import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-B7uHQGTE.js";
|
|
12
|
+
import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-DvPU6iRP.js";
|
|
13
|
+
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-jWFQ1kH0.js";
|
|
14
|
+
import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-CoVguga6.js";
|
|
15
|
+
import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-nqMC7kU6.js";
|
|
16
16
|
import { createRequire } from "node:module";
|
|
17
17
|
import * as fs$2 from "node:fs";
|
|
18
18
|
import fs, { mkdtempSync, rmSync } from "node:fs";
|
|
@@ -558,6 +558,7 @@ const buildScanAttributes = (input) => {
|
|
|
558
558
|
hasCustomConfig: input.hasCustomConfig,
|
|
559
559
|
customRulesOnly: input.userConfig?.customRulesOnly ?? false,
|
|
560
560
|
rulesConfigured: ruleKeys.length,
|
|
561
|
+
unknownBundledRuleCount: getUnknownBundledRuleKeys(input.userConfig?.rules).length,
|
|
561
562
|
rulesDisabled: ruleKeys.filter((key) => ruleOverrides[key] === "off").length,
|
|
562
563
|
projectAnalysisRuleCount: countOptInProjectRuleSelections(buildRuleSeverityControls(input.userConfig)),
|
|
563
564
|
fileCount: input.result?.scannedFileCount,
|
|
@@ -1288,23 +1289,31 @@ const resolveSafeSourcePath = (rootDirectory, filePath) => {
|
|
|
1288
1289
|
return null;
|
|
1289
1290
|
}
|
|
1290
1291
|
};
|
|
1291
|
-
const readSourceRecord = (rootDirectory, filePath, state) => {
|
|
1292
|
+
const readSourceRecord = (rootDirectory, filePath, state, requiresSourceFile = false) => {
|
|
1292
1293
|
const normalizedFilePath = filePath.replace(/\\/g, "/");
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
if (absolutePath === null) {
|
|
1296
|
-
state.recordByFilePath.set(normalizedFilePath, null);
|
|
1297
|
-
return null;
|
|
1298
|
-
}
|
|
1294
|
+
let record = state.recordByFilePath.get(normalizedFilePath);
|
|
1295
|
+
if (record === null) return null;
|
|
1299
1296
|
try {
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
absolutePath
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1297
|
+
if (record === void 0) {
|
|
1298
|
+
const absolutePath = resolveSafeSourcePath(rootDirectory, normalizedFilePath);
|
|
1299
|
+
if (absolutePath === null) {
|
|
1300
|
+
state.recordByFilePath.set(normalizedFilePath, null);
|
|
1301
|
+
return null;
|
|
1302
|
+
}
|
|
1303
|
+
const sourceText = fs.readFileSync(absolutePath, "utf-8");
|
|
1304
|
+
let parsedSourceFile;
|
|
1305
|
+
record = {
|
|
1306
|
+
absolutePath,
|
|
1307
|
+
filePath: normalizedFilePath,
|
|
1308
|
+
get sourceFile() {
|
|
1309
|
+
parsedSourceFile ??= typescriptBinding.createSourceFile(absolutePath, sourceText, typescriptBinding.ScriptTarget.Latest, true, getScriptKind(absolutePath));
|
|
1310
|
+
return parsedSourceFile;
|
|
1311
|
+
},
|
|
1312
|
+
sourceText
|
|
1313
|
+
};
|
|
1314
|
+
state.recordByFilePath.set(normalizedFilePath, record);
|
|
1315
|
+
}
|
|
1316
|
+
if (requiresSourceFile) record.sourceFile;
|
|
1308
1317
|
return record;
|
|
1309
1318
|
} catch {
|
|
1310
1319
|
state.recordByFilePath.set(normalizedFilePath, null);
|
|
@@ -1314,7 +1323,7 @@ const readSourceRecord = (rootDirectory, filePath, state) => {
|
|
|
1314
1323
|
const listSourceRecords = (rootDirectory, state) => {
|
|
1315
1324
|
if (state.sourceRecords !== null) return state.sourceRecords;
|
|
1316
1325
|
state.sourceRecords = listSourceFiles(rootDirectory).flatMap((filePath) => {
|
|
1317
|
-
const record = readSourceRecord(rootDirectory, filePath, state);
|
|
1326
|
+
const record = readSourceRecord(rootDirectory, filePath, state, true);
|
|
1318
1327
|
return record === null ? [] : [record];
|
|
1319
1328
|
});
|
|
1320
1329
|
return state.sourceRecords;
|
|
@@ -1573,6 +1582,8 @@ const createDiagnosticEvidenceReader = (rootDirectory, options = {}) => {
|
|
|
1573
1582
|
return (diagnostic) => {
|
|
1574
1583
|
const record = readSourceRecord(rootDirectory, diagnostic.filePath, state);
|
|
1575
1584
|
if (record === null || !Number.isInteger(diagnostic.line)) return null;
|
|
1585
|
+
const shouldResolveForwardedHandlers = Boolean(options.resolveForwardedHandlers);
|
|
1586
|
+
if (shouldResolveForwardedHandlers && readSourceRecord(rootDirectory, diagnostic.filePath, state, true) === null) return null;
|
|
1576
1587
|
const sourceLines = record.sourceText.split(/\r?\n/);
|
|
1577
1588
|
const startLineIndex = Math.max(0, diagnostic.line - 1);
|
|
1578
1589
|
const endLineIndex = Math.max(startLineIndex, (diagnostic.endLine ?? diagnostic.line) - 1);
|
|
@@ -1581,7 +1592,7 @@ const createDiagnosticEvidenceReader = (rootDirectory, options = {}) => {
|
|
|
1581
1592
|
const end = index === lines.length - 1 && diagnostic.endColumn !== void 0 ? diagnostic.endColumn - 1 : void 0;
|
|
1582
1593
|
return line.slice(start, end);
|
|
1583
1594
|
}).join("\n");
|
|
1584
|
-
if (!
|
|
1595
|
+
if (!shouldResolveForwardedHandlers) return evidence;
|
|
1585
1596
|
const propNames = new Set(evidence.match(/\bon[A-Z]\w*\b/g) ?? []);
|
|
1586
1597
|
if (propNames.size === 0) return evidence;
|
|
1587
1598
|
const component = findEnclosingComponent(record, diagnostic);
|
|
@@ -3168,5 +3179,5 @@ const resolveScanExitCode = (input) => {
|
|
|
3168
3179
|
//#endregion
|
|
3169
3180
|
export { createInvocationInspect as A, hasIncompleteScoreAnalysis as B, detectLaunchableAgents as C, buildHandoffPayload as D, launchCliAgent as E, formatSkippedCheckLabel as F, hasLintHardFailure as G, buildNoScoreMessage as H, formatElapsedTime as I, formatFixRecipeLine as J, buildRulePriorityMap as K, printFooter as L, resolveMergeBaseRef as M, printHeadlessReport as N, collectProjectSourceFiles as O, pluralize as P, printDiagnosticsDump as R, setUpGitHubActions as S, copyToClipboard as T, buildEmptyReportMessage as U, filterDiagnosticsByCategories as V, resolveInvocationOxlintConcurrency as W, formatLearnMoreLine as Y, retryMissingProjectScores as _, validateModeFlags as a, filterScansForSurface as b, partitionProjectScanOutcomes as c, buildCodeFrame as d, resolveProjectScan as f, resolveProjectRelativeDirectory as g, resolveProjectSourceFilePaths as h, validateIncludeUntrackedScope as i, inspect as j, deduplicateProjectScans as k, discoverWorkspacePackages as l, resolveProjectDiffIncludePaths as m, formatSkippedProjectsMessage as n, resolveExcludedProjectDirectories as o, resolveProjectChangedLineRanges as p, buildSortedRuleGroups as q, validateFilePathSelectionFlags as r, projectManifestChanged as s, resolveScanExitCode as t, selectProjects as u, resolveWorkspaceDeadCodeOwner as v, CLI_AGENT_BINARIES as w, countUniqueScannedFiles as x, resolveCliInspectOptions as y, formatDiagnosticSite as z };
|
|
3170
3181
|
|
|
3171
|
-
//# sourceMappingURL=resolve-scan-exit-code-
|
|
3172
|
-
//# debugId=
|
|
3182
|
+
//# sourceMappingURL=resolve-scan-exit-code-Ckg6q3g0.js.map
|
|
3183
|
+
//# debugId=87461a4f-f16a-50ed-ae0f-04c9996a05a1
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import {
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8b314932-5211-5dd3-b1da-0f3ae92a4ba1")}catch(e){}}();
|
|
3
|
+
import { Hn as toCanonicalPath, Pt as isPathInsideDirectory, gt as filterSourceFiles } from "./record-metric-DEkif2lv.js";
|
|
4
4
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
5
|
-
import { N as cliLogger } from "./install-doctor-script-
|
|
6
|
-
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-
|
|
5
|
+
import { N as cliLogger } from "./install-doctor-script-B7uHQGTE.js";
|
|
6
|
+
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-DvPU6iRP.js";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
8
|
//#region src/cli/utils/open-workflow-pull-request.ts
|
|
9
9
|
const NEW_BRANCH_PREFIX = "react-doctor/add-github-actions";
|
|
@@ -334,5 +334,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
|
|
|
334
334
|
//#endregion
|
|
335
335
|
export { isValidBlockingLevel as a, openWorkflowPullRequest as c, warnDeprecatedDiff as i, stageWorkflowFile as l, isScopeValue as n, pickBlockingLevel as o, resolveScope as r, resolveBlockingLevel as s, finalizeScope as t };
|
|
336
336
|
|
|
337
|
-
//# sourceMappingURL=resolve-scope-
|
|
338
|
-
//# debugId=
|
|
337
|
+
//# sourceMappingURL=resolve-scope-jWFQ1kH0.js.map
|
|
338
|
+
//# debugId=8b314932-5211-5dd3-b1da-0f3ae92a4ba1
|