react-doctor 0.7.9-dev.2450582 → 0.7.9-dev.2979a9b
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/cli.js +9 -25
- package/dist/index.d.ts +12 -13
- package/dist/index.js +4 -12
- package/dist/lsp.js +4 -12
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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]="6f05eada-46fe-5b24-92d8-15fa92a38b00")}catch(e){}}();
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import * as NodeChildProcess from "node:child_process";
|
|
5
5
|
import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
@@ -39228,10 +39228,8 @@ const isDiagnosticSurface = (value) => typeof value === "string" && DIAGNOSTIC_S
|
|
|
39228
39228
|
* to the local CLI so developers see them while editing, but they're
|
|
39229
39229
|
* removed from the PR comment surface, the score, and the CI gate so
|
|
39230
39230
|
* they can't bury real React findings or fail a build over a Tailwind
|
|
39231
|
-
* shorthand.
|
|
39232
|
-
*
|
|
39233
|
-
* gate. Override per-surface via `config.surfaces.<surface>` to promote
|
|
39234
|
-
* individual rules back in by tag, category, or rule id.
|
|
39231
|
+
* shorthand. Override per-surface via `config.surfaces.<surface>` to
|
|
39232
|
+
* promote individual rules back in by tag, category, or rule id.
|
|
39235
39233
|
*/
|
|
39236
39234
|
const DEFAULT_SURFACE_EXCLUDED_TAGS = {
|
|
39237
39235
|
cli: [],
|
|
@@ -42062,7 +42060,6 @@ const isDiagnosticOnSurface = (diagnostic, surface, config) => {
|
|
|
42062
42060
|
if (resolved.includeRuleKeys.has(ruleKey)) return true;
|
|
42063
42061
|
if (resolved.includeCategories.has(category)) return true;
|
|
42064
42062
|
if (intersects(tags, resolved.includeTags)) return true;
|
|
42065
|
-
if (diagnostic.fileContext !== void 0 && (surface === "score" || surface === "ciFailure")) return false;
|
|
42066
42063
|
if (resolved.excludeRuleKeys.has(ruleKey)) return false;
|
|
42067
42064
|
if (resolved.excludeCategories.has(category)) return false;
|
|
42068
42065
|
if (intersects(tags, resolved.excludeTags)) return false;
|
|
@@ -42487,7 +42484,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
42487
42484
|
}
|
|
42488
42485
|
const diff = yield* runGit(input.directory, [
|
|
42489
42486
|
"diff",
|
|
42490
|
-
"--no-ext-diff",
|
|
42491
42487
|
"-z",
|
|
42492
42488
|
"--name-only",
|
|
42493
42489
|
"--diff-filter=ACMR",
|
|
@@ -42534,7 +42530,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
42534
42530
|
if (resolvedCurrentBranch !== null && resolvedCurrentBranch === baseBranch) {
|
|
42535
42531
|
const uncommitted = yield* runGit(directory, [
|
|
42536
42532
|
"diff",
|
|
42537
|
-
"--no-ext-diff",
|
|
42538
42533
|
"-z",
|
|
42539
42534
|
"--name-only",
|
|
42540
42535
|
"--diff-filter=ACMR",
|
|
@@ -42561,7 +42556,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
42561
42556
|
if (mergeBaseRef === null) return null;
|
|
42562
42557
|
const diff = yield* runGit(directory, [
|
|
42563
42558
|
"diff",
|
|
42564
|
-
"--no-ext-diff",
|
|
42565
42559
|
"-z",
|
|
42566
42560
|
"--name-only",
|
|
42567
42561
|
"--diff-filter=ACMR",
|
|
@@ -42579,7 +42573,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
42579
42573
|
}).pipe(withSpan("Git.diffSelection")),
|
|
42580
42574
|
stagedFilePaths: (directory) => runGit(directory, [
|
|
42581
42575
|
"diff",
|
|
42582
|
-
"--no-ext-diff",
|
|
42583
42576
|
"--cached",
|
|
42584
42577
|
"-z",
|
|
42585
42578
|
"--name-only",
|
|
@@ -42625,7 +42618,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
42625
42618
|
if (baseRef !== void 0 && !isSafeGitRevision(baseRef)) return null;
|
|
42626
42619
|
const result = yield* runGit(directory, [
|
|
42627
42620
|
"diff",
|
|
42628
|
-
"--no-ext-diff",
|
|
42629
42621
|
"--unified=0",
|
|
42630
42622
|
"--diff-filter=ACMR",
|
|
42631
42623
|
"--relative",
|
|
@@ -47223,7 +47215,7 @@ const makeNoopConsole = () => ({
|
|
|
47223
47215
|
});
|
|
47224
47216
|
//#endregion
|
|
47225
47217
|
//#region src/cli/utils/version.ts
|
|
47226
|
-
const VERSION = "0.7.9-dev.
|
|
47218
|
+
const VERSION = "0.7.9-dev.2979a9b";
|
|
47227
47219
|
//#endregion
|
|
47228
47220
|
//#region src/cli/utils/json-mode.ts
|
|
47229
47221
|
let context = null;
|
|
@@ -47575,13 +47567,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
47575
47567
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
47576
47568
|
* standard `SENTRY_RELEASE` override.
|
|
47577
47569
|
*/
|
|
47578
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.9-dev.
|
|
47570
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.9-dev.2979a9b`;
|
|
47579
47571
|
/**
|
|
47580
47572
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
47581
47573
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
47582
47574
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
47583
47575
|
*/
|
|
47584
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.9-dev.
|
|
47576
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.9-dev.2979a9b") ? "development" : "production");
|
|
47585
47577
|
/**
|
|
47586
47578
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
47587
47579
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -60076,7 +60068,6 @@ const buildOutcomeAttributes = (input) => {
|
|
|
60076
60068
|
const summary = summarizeDiagnostics(result.diagnostics);
|
|
60077
60069
|
const blockingLevel = resolveTelemetryBlocking(input.userConfig);
|
|
60078
60070
|
const gateDiagnostics = filterDiagnosticsForSurface(result.diagnostics, "ciFailure", input.userConfig);
|
|
60079
|
-
const gateDiagnosticSet = new Set(gateDiagnostics);
|
|
60080
60071
|
const complete = isInspectResultComplete(result);
|
|
60081
60072
|
const didLintHardFail = hasLintHardFailure(result);
|
|
60082
60073
|
const failsOnHardFailure = didLintHardFail && blockingLevel !== "none";
|
|
@@ -60099,13 +60090,11 @@ const buildOutcomeAttributes = (input) => {
|
|
|
60099
60090
|
const largestRuleBucket = buildRuleBlastRadii(result.diagnostics)[0] ?? null;
|
|
60100
60091
|
let diagnosticsInTestFiles = 0;
|
|
60101
60092
|
let diagnosticsInStoryFiles = 0;
|
|
60102
|
-
let nonProductionGateExcluded = 0;
|
|
60103
60093
|
const diagnosticSiteCounts = /* @__PURE__ */ new Map();
|
|
60104
60094
|
const findingsPerFixGroup = /* @__PURE__ */ new Map();
|
|
60105
60095
|
for (const diagnostic of result.diagnostics) {
|
|
60106
60096
|
if (diagnostic.fileContext === "test") diagnosticsInTestFiles += 1;
|
|
60107
60097
|
if (diagnostic.fileContext === "story") diagnosticsInStoryFiles += 1;
|
|
60108
|
-
if (diagnostic.fileContext !== void 0 && !gateDiagnosticSet.has(diagnostic)) nonProductionGateExcluded += 1;
|
|
60109
60098
|
const diagnosticSite = JSON.stringify([
|
|
60110
60099
|
diagnostic.filePath,
|
|
60111
60100
|
diagnostic.line,
|
|
@@ -60154,7 +60143,6 @@ const buildOutcomeAttributes = (input) => {
|
|
|
60154
60143
|
affectedFiles: summary.affectedFileCount,
|
|
60155
60144
|
inTestFiles: diagnosticsInTestFiles,
|
|
60156
60145
|
inStoryFiles: diagnosticsInStoryFiles,
|
|
60157
|
-
nonProductionGateExcluded,
|
|
60158
60146
|
distinctRules: countByRule.size,
|
|
60159
60147
|
topRule,
|
|
60160
60148
|
sameSiteOccurrences,
|
|
@@ -61994,9 +61982,7 @@ const finalizeAndRender = (input) => gen(function* () {
|
|
|
61994
61982
|
yield* log(highlighter.gray(` ${demotedDiagnosticCount} demoted from the ${options.outputSurface} surface (e.g. design cleanup) — run \`npx react-doctor@latest .\` locally for the full list.`));
|
|
61995
61983
|
yield* log("");
|
|
61996
61984
|
}
|
|
61997
|
-
const
|
|
61998
|
-
const displayedScoreDiagnostics = filterDiagnosticsForSurface([...printedDiagnostics], "score", userConfig);
|
|
61999
|
-
const potentialScore = score ? yield* promise(() => computeProjectedScore(displayedScoreDiagnostics, scoreDiagnostics, score)) : null;
|
|
61985
|
+
const potentialScore = score ? yield* promise(() => computeProjectedScore([...printedDiagnostics], [...surfaceDiagnostics], score)) : null;
|
|
62000
61986
|
const shouldShowShareLink = !options.noScore && options.share && !options.isCi;
|
|
62001
61987
|
yield* pause;
|
|
62002
61988
|
yield* printSummary({
|
|
@@ -63897,8 +63883,6 @@ const printMultiProjectSummary = (input) => gen(function* () {
|
|
|
63897
63883
|
const categoryFilters = input.categoryFilters ?? /* @__PURE__ */ new Set();
|
|
63898
63884
|
const animateRender = !verbose && canAnimateOnboarding(process.stdout);
|
|
63899
63885
|
const displayDiagnostics = filterDiagnosticsByCategories(filterScansForSurface(completedScans, "cli"), categoryFilters);
|
|
63900
|
-
const scoreDiagnostics = new Set(filterScansForSurface(completedScans, "score"));
|
|
63901
|
-
const displayedScoreDiagnostics = displayDiagnostics.filter((diagnostic) => scoreDiagnostics.has(diagnostic));
|
|
63902
63886
|
const projectRootByDiagnostic = /* @__PURE__ */ new WeakMap();
|
|
63903
63887
|
for (const scan of completedScans) for (const diagnostic of scan.result.diagnostics) projectRootByDiagnostic.set(diagnostic, scan.result.project.rootDirectory);
|
|
63904
63888
|
const resolveDiagnosticSourceRoot = (diagnostic) => projectRootByDiagnostic.get(diagnostic) ?? "";
|
|
@@ -63922,7 +63906,7 @@ const printMultiProjectSummary = (input) => gen(function* () {
|
|
|
63922
63906
|
diagnostics: displayDiagnostics,
|
|
63923
63907
|
elapsedMilliseconds: totalElapsedMilliseconds,
|
|
63924
63908
|
scoreResult: aggregateScore,
|
|
63925
|
-
potentialScore: lowestScoredScan ? yield* promise(() => computeProjectedScore(
|
|
63909
|
+
potentialScore: lowestScoredScan ? yield* promise(() => computeProjectedScore(displayDiagnostics, filterScansForSurface([lowestScoredScan], "cli"), lowestScoredScan.result.score)) : null,
|
|
63926
63910
|
totalSourceFileCount,
|
|
63927
63911
|
noScoreMessage: "Score unavailable.",
|
|
63928
63912
|
verbose,
|
|
@@ -65867,4 +65851,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
65867
65851
|
export {};
|
|
65868
65852
|
|
|
65869
65853
|
//# sourceMappingURL=cli.js.map
|
|
65870
|
-
//# debugId=
|
|
65854
|
+
//# debugId=6f05eada-46fe-5b24-92d8-15fa92a38b00
|
package/dist/index.d.ts
CHANGED
|
@@ -9056,10 +9056,8 @@ interface ReactDoctorIgnoreConfig {
|
|
|
9056
9056
|
*
|
|
9057
9057
|
* Defaults: design rules (tag `"design"`) are excluded from `prComment`,
|
|
9058
9058
|
* `score`, and `ciFailure` so style cleanup doesn't dilute meaningful
|
|
9059
|
-
* React findings.
|
|
9060
|
-
*
|
|
9061
|
-
* explicit rule, category, or tag include promotes a diagnostic back onto
|
|
9062
|
-
* the selected surface.
|
|
9059
|
+
* React findings. They remain in `cli` so locally-running developers
|
|
9060
|
+
* still see the suggestion when they touch the file.
|
|
9063
9061
|
*/
|
|
9064
9062
|
type DiagnosticSurface = "cli" | "prComment" | "score" | "ciFailure";
|
|
9065
9063
|
/**
|
|
@@ -9340,22 +9338,23 @@ interface ReactDoctorConfig {
|
|
|
9340
9338
|
*/
|
|
9341
9339
|
adoptExistingLintConfig?: boolean;
|
|
9342
9340
|
/**
|
|
9343
|
-
* Per-surface include/exclude controls. Each `DiagnosticSurface`
|
|
9344
|
-
* rule tags,
|
|
9345
|
-
* visible locally
|
|
9346
|
-
*
|
|
9341
|
+
* Per-surface include/exclude controls. Each `DiagnosticSurface` is
|
|
9342
|
+
* resolved independently against rule tags, category, and id so a
|
|
9343
|
+
* single rule can be visible locally yet hidden from PR comments,
|
|
9344
|
+
* neutralized from the score, and excluded from the CI gate — all
|
|
9345
|
+
* without touching the rule's severity or activation.
|
|
9347
9346
|
*
|
|
9348
9347
|
* Defaults (applied before user overrides):
|
|
9349
9348
|
*
|
|
9350
9349
|
* - `prComment` excludes tag `"design"`
|
|
9351
9350
|
* - `score` excludes tag `"design"`
|
|
9352
9351
|
* - `ciFailure` excludes tag `"design"`
|
|
9353
|
-
* - `score` and `ciFailure` exclude test/story file contexts unless explicitly included
|
|
9354
9352
|
*
|
|
9355
|
-
* Pass any controls block
|
|
9356
|
-
*
|
|
9357
|
-
*
|
|
9358
|
-
*
|
|
9353
|
+
* Pass any controls block (even an empty `{}`) to keep the default
|
|
9354
|
+
* exclusions; the user's include/exclude entries layer on top.
|
|
9355
|
+
* Include entries always win over exclude entries — handy for
|
|
9356
|
+
* promoting a single high-signal `design-*` rule back into the
|
|
9357
|
+
* score or PR-comment surface.
|
|
9359
9358
|
*/
|
|
9360
9359
|
surfaces?: Partial<Record<DiagnosticSurface, SurfaceControls>>;
|
|
9361
9360
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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]="28287c1c-b7b6-53b8-9e72-7d28d4f3ca45")}catch(e){}}();
|
|
3
3
|
import { r as __toESM$1, t as __commonJSMin$1 } from "./chunk-N93fKeF6.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import reactDoctorPlugin, { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_RULES, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor";
|
|
@@ -36028,10 +36028,8 @@ const isDiagnosticSurface = (value) => typeof value === "string" && DIAGNOSTIC_S
|
|
|
36028
36028
|
* to the local CLI so developers see them while editing, but they're
|
|
36029
36029
|
* removed from the PR comment surface, the score, and the CI gate so
|
|
36030
36030
|
* they can't bury real React findings or fail a build over a Tailwind
|
|
36031
|
-
* shorthand.
|
|
36032
|
-
*
|
|
36033
|
-
* gate. Override per-surface via `config.surfaces.<surface>` to promote
|
|
36034
|
-
* individual rules back in by tag, category, or rule id.
|
|
36031
|
+
* shorthand. Override per-surface via `config.surfaces.<surface>` to
|
|
36032
|
+
* promote individual rules back in by tag, category, or rule id.
|
|
36035
36033
|
*/
|
|
36036
36034
|
const DEFAULT_SURFACE_EXCLUDED_TAGS = {
|
|
36037
36035
|
cli: [],
|
|
@@ -38818,7 +38816,6 @@ const isDiagnosticOnSurface = (diagnostic, surface, config) => {
|
|
|
38818
38816
|
if (resolved.includeRuleKeys.has(ruleKey)) return true;
|
|
38819
38817
|
if (resolved.includeCategories.has(category)) return true;
|
|
38820
38818
|
if (intersects(tags, resolved.includeTags)) return true;
|
|
38821
|
-
if (diagnostic.fileContext !== void 0 && (surface === "score" || surface === "ciFailure")) return false;
|
|
38822
38819
|
if (resolved.excludeRuleKeys.has(ruleKey)) return false;
|
|
38823
38820
|
if (resolved.excludeCategories.has(category)) return false;
|
|
38824
38821
|
if (intersects(tags, resolved.excludeTags)) return false;
|
|
@@ -39243,7 +39240,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
39243
39240
|
}
|
|
39244
39241
|
const diff = yield* runGit(input.directory, [
|
|
39245
39242
|
"diff",
|
|
39246
|
-
"--no-ext-diff",
|
|
39247
39243
|
"-z",
|
|
39248
39244
|
"--name-only",
|
|
39249
39245
|
"--diff-filter=ACMR",
|
|
@@ -39290,7 +39286,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
39290
39286
|
if (resolvedCurrentBranch !== null && resolvedCurrentBranch === baseBranch) {
|
|
39291
39287
|
const uncommitted = yield* runGit(directory, [
|
|
39292
39288
|
"diff",
|
|
39293
|
-
"--no-ext-diff",
|
|
39294
39289
|
"-z",
|
|
39295
39290
|
"--name-only",
|
|
39296
39291
|
"--diff-filter=ACMR",
|
|
@@ -39317,7 +39312,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
39317
39312
|
if (mergeBaseRef === null) return null;
|
|
39318
39313
|
const diff = yield* runGit(directory, [
|
|
39319
39314
|
"diff",
|
|
39320
|
-
"--no-ext-diff",
|
|
39321
39315
|
"-z",
|
|
39322
39316
|
"--name-only",
|
|
39323
39317
|
"--diff-filter=ACMR",
|
|
@@ -39335,7 +39329,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
39335
39329
|
}).pipe(withSpan("Git.diffSelection")),
|
|
39336
39330
|
stagedFilePaths: (directory) => runGit(directory, [
|
|
39337
39331
|
"diff",
|
|
39338
|
-
"--no-ext-diff",
|
|
39339
39332
|
"--cached",
|
|
39340
39333
|
"-z",
|
|
39341
39334
|
"--name-only",
|
|
@@ -39381,7 +39374,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
39381
39374
|
if (baseRef !== void 0 && !isSafeGitRevision(baseRef)) return null;
|
|
39382
39375
|
const result = yield* runGit(directory, [
|
|
39383
39376
|
"diff",
|
|
39384
|
-
"--no-ext-diff",
|
|
39385
39377
|
"--unified=0",
|
|
39386
39378
|
"--diff-filter=ACMR",
|
|
39387
39379
|
"--relative",
|
|
@@ -43727,4 +43719,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
43727
43719
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
43728
43720
|
|
|
43729
43721
|
//# sourceMappingURL=index.js.map
|
|
43730
|
-
//# debugId=
|
|
43722
|
+
//# debugId=28287c1c-b7b6-53b8-9e72-7d28d4f3ca45
|
package/dist/lsp.js
CHANGED
|
@@ -36054,10 +36054,8 @@ const isDiagnosticSurface = (value) => typeof value === "string" && DIAGNOSTIC_S
|
|
|
36054
36054
|
* to the local CLI so developers see them while editing, but they're
|
|
36055
36055
|
* removed from the PR comment surface, the score, and the CI gate so
|
|
36056
36056
|
* they can't bury real React findings or fail a build over a Tailwind
|
|
36057
|
-
* shorthand.
|
|
36058
|
-
*
|
|
36059
|
-
* gate. Override per-surface via `config.surfaces.<surface>` to promote
|
|
36060
|
-
* individual rules back in by tag, category, or rule id.
|
|
36057
|
+
* shorthand. Override per-surface via `config.surfaces.<surface>` to
|
|
36058
|
+
* promote individual rules back in by tag, category, or rule id.
|
|
36061
36059
|
*/
|
|
36062
36060
|
const DEFAULT_SURFACE_EXCLUDED_TAGS = {
|
|
36063
36061
|
cli: [],
|
|
@@ -38796,7 +38794,6 @@ const isDiagnosticOnSurface = (diagnostic, surface, config) => {
|
|
|
38796
38794
|
if (resolved.includeRuleKeys.has(ruleKey)) return true;
|
|
38797
38795
|
if (resolved.includeCategories.has(category)) return true;
|
|
38798
38796
|
if (intersects(tags, resolved.includeTags)) return true;
|
|
38799
|
-
if (diagnostic.fileContext !== void 0 && (surface === "score" || surface === "ciFailure")) return false;
|
|
38800
38797
|
if (resolved.excludeRuleKeys.has(ruleKey)) return false;
|
|
38801
38798
|
if (resolved.excludeCategories.has(category)) return false;
|
|
38802
38799
|
if (intersects(tags, resolved.excludeTags)) return false;
|
|
@@ -39221,7 +39218,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
39221
39218
|
}
|
|
39222
39219
|
const diff = yield* runGit(input.directory, [
|
|
39223
39220
|
"diff",
|
|
39224
|
-
"--no-ext-diff",
|
|
39225
39221
|
"-z",
|
|
39226
39222
|
"--name-only",
|
|
39227
39223
|
"--diff-filter=ACMR",
|
|
@@ -39268,7 +39264,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
39268
39264
|
if (resolvedCurrentBranch !== null && resolvedCurrentBranch === baseBranch) {
|
|
39269
39265
|
const uncommitted = yield* runGit(directory, [
|
|
39270
39266
|
"diff",
|
|
39271
|
-
"--no-ext-diff",
|
|
39272
39267
|
"-z",
|
|
39273
39268
|
"--name-only",
|
|
39274
39269
|
"--diff-filter=ACMR",
|
|
@@ -39295,7 +39290,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
39295
39290
|
if (mergeBaseRef === null) return null;
|
|
39296
39291
|
const diff = yield* runGit(directory, [
|
|
39297
39292
|
"diff",
|
|
39298
|
-
"--no-ext-diff",
|
|
39299
39293
|
"-z",
|
|
39300
39294
|
"--name-only",
|
|
39301
39295
|
"--diff-filter=ACMR",
|
|
@@ -39313,7 +39307,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
39313
39307
|
}).pipe(withSpan("Git.diffSelection")),
|
|
39314
39308
|
stagedFilePaths: (directory) => runGit(directory, [
|
|
39315
39309
|
"diff",
|
|
39316
|
-
"--no-ext-diff",
|
|
39317
39310
|
"--cached",
|
|
39318
39311
|
"-z",
|
|
39319
39312
|
"--name-only",
|
|
@@ -39359,7 +39352,6 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
39359
39352
|
if (baseRef !== void 0 && !isSafeGitRevision(baseRef)) return null;
|
|
39360
39353
|
const result = yield* runGit(directory, [
|
|
39361
39354
|
"diff",
|
|
39362
|
-
"--no-ext-diff",
|
|
39363
39355
|
"--unified=0",
|
|
39364
39356
|
"--diff-filter=ACMR",
|
|
39365
39357
|
"--relative",
|
|
@@ -45347,5 +45339,5 @@ const startLanguageServer = () => {
|
|
|
45347
45339
|
};
|
|
45348
45340
|
//#endregion
|
|
45349
45341
|
export { startLanguageServer };
|
|
45350
|
-
!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]="
|
|
45351
|
-
//# debugId=
|
|
45342
|
+
!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]="6c89dec9-5fbe-5a2e-b1fe-6b3954e0e85b")}catch(e){}}();
|
|
45343
|
+
//# debugId=6c89dec9-5fbe-5a2e-b1fe-6b3954e0e85b
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.7.9-dev.
|
|
3
|
+
"version": "0.7.9-dev.2979a9b",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"vscode-uri": "^3.1.0",
|
|
67
67
|
"yaml": "^2.9.0",
|
|
68
68
|
"deslop-js": "0.7.9",
|
|
69
|
-
"oxlint-plugin-react-doctor": "0.7.9-dev.
|
|
69
|
+
"oxlint-plugin-react-doctor": "0.7.9-dev.2979a9b"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/babel__code-frame": "^7.27.0",
|