@hublo/sentinel 1.6.0-alpha.3 → 1.6.0-alpha.4
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/bin/sentinel.js
CHANGED
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
presetNotInstalledYet,
|
|
13
13
|
registerAdapters,
|
|
14
14
|
resolve
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-NLCX7QSY.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveContext
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-BXI5CRRN.js";
|
|
19
19
|
import {
|
|
20
20
|
ensureWorkspacePrep,
|
|
21
21
|
findWorkspaceRoot,
|
|
@@ -584,7 +584,7 @@ async function runValidate(ctx) {
|
|
|
584
584
|
);
|
|
585
585
|
}
|
|
586
586
|
if (!ctx.targets.includes("test")) return 1;
|
|
587
|
-
const { validateModuleTests } = await import("../validate-
|
|
587
|
+
const { validateModuleTests } = await import("../validate-3HV7TRSX.js");
|
|
588
588
|
const outcomes = modules.flatMap(
|
|
589
589
|
(module) => validateModuleTests(module.name, module.root)
|
|
590
590
|
);
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
uncoveredFor,
|
|
70
70
|
walk,
|
|
71
71
|
writtenFileFormatter
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-BXI5CRRN.js";
|
|
73
73
|
import {
|
|
74
74
|
DEFAULT_MAX_DIAGNOSTICS,
|
|
75
75
|
WORKSPACE_ROOT_MARKER,
|
|
@@ -5389,10 +5389,10 @@ var metricsHelp = {
|
|
|
5389
5389
|
unusedImports: {
|
|
5390
5390
|
label: "Unused imports",
|
|
5391
5391
|
what: "Imported names the importing file never uses.",
|
|
5392
|
-
read: "Mostly a lint concern
|
|
5393
|
-
caveat: "\u26A0\uFE0F 85% of these findings, measured over every module scanned on this pass, are `import React from 'react'`, which the modern JSX transform makes unnecessary and the classic one requires, so whether it is removable depends on the module's `jsx` setting and not on this count. Worse for acting on it line by line: `import React, { useState } from 'react'` is reported with the name `React`, and deleting the line takes `useState` with it. It overlaps `typescript/no-unused-vars`, which
|
|
5392
|
+
read: "Mostly a lint concern: since 1.6.0 every lint preset reports these as errors, so on a module that adopted the lint role this figure repeats what lint already says. It matters for modules that have not adopted it yet.",
|
|
5393
|
+
caveat: "\u26A0\uFE0F 85% of these findings, measured over every module scanned on this pass, are `import React from 'react'`, which the modern JSX transform makes unnecessary and the classic one requires, so whether it is removable depends on the module's `jsx` setting and not on this count. Worse for acting on it line by line: `import React, { useState } from 'react'` is reported with the name `React`, and deleting the line takes `useState` with it. It overlaps `typescript/no-unused-vars`, which every lint preset enables as an error since 1.6.0.",
|
|
5394
5394
|
fix: "Delete the import. The lint role does this for you once the module adopts it, so a number here on an adopted module is a bug worth reporting.",
|
|
5395
|
-
source: "jscpd dead-code findings of category `unused-import`; the 85%
|
|
5395
|
+
source: "jscpd dead-code findings of category `unused-import`; the 85% was measured on the day's scans."
|
|
5396
5396
|
},
|
|
5397
5397
|
duplicatedLinesPercentTests: {
|
|
5398
5398
|
label: "Duplicated lines (tests)",
|
package/dist/index.js
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
registerAdapters,
|
|
7
7
|
resolve,
|
|
8
8
|
setDefaultRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NLCX7QSY.js";
|
|
10
10
|
import {
|
|
11
11
|
BaseAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BXI5CRRN.js";
|
|
13
13
|
import "./chunk-ZNANJEMK.js";
|
|
14
14
|
import "./chunk-7E6YTTAK.js";
|
|
15
15
|
import "./chunk-4EIY7TTR.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hublo/sentinel",
|
|
3
|
-
"version": "1.6.0-alpha.
|
|
3
|
+
"version": "1.6.0-alpha.4",
|
|
4
4
|
"description": "One CLI that guards code health across Hublo repos: shared lint/typescript/build/test presets, static & dynamic analysis, and architecture checks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
File without changes
|