refactor: hard-fork GSD -> MSD (Make Software Done)
Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD across contents and paths, upstream package/repo coordinates -> @golem15/msd-core and golem15com/msd-core. Deep links into upstream history, sibling upstream packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is. Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line, package/plugin identity, regenerated lockfile, install-tree fixtures, derived registries and benchmark baseline; migration checksum baseline re-locked (MSD keeps its own install state, so no install had applied the old sums); sort-order and regex-escaped expectations in tests adjusted.
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
* `local/no-source-grep` is registered by `eslint.config.mjs` on several
|
||||
* glob blocks, not only `tests/** /*.cjs`: also `scripts/** /*.cjs`,
|
||||
* `eslint-rules/** /*.cjs`, `bin/lib/** /*.cjs`, `pi/** /*.cjs`,
|
||||
* `examples/** /*.cjs`, `gsd-core/bin/** /*.cjs`, `vscode/*.js`,
|
||||
* `examples/** /*.cjs`, `msd-core/bin/** /*.cjs`, `vscode/*.js`,
|
||||
* `.kilo/plugins/*.js`, and `.opencode/plugins/*.js`. A prior version of
|
||||
* this script only walked `tests/** /*.test.cjs`, which silently dropped
|
||||
* every non-`.test.cjs` file under `tests/` AND every file under every one
|
||||
@@ -166,24 +166,24 @@ const noSourceGrepRule = require('../eslint-rules/no-source-grep.cjs');
|
||||
|
||||
const ROOT = path.join(__dirname, '..');
|
||||
const ESLINT_CONFIG_PATH = path.join(ROOT, 'eslint.config.mjs');
|
||||
const TESTS_DIR = process.env.GSD_LINT_ALLOW_TEST_RULE_TESTS_DIR || path.join(ROOT, 'tests');
|
||||
const TESTS_DIR = process.env.MSD_LINT_ALLOW_TEST_RULE_TESTS_DIR || path.join(ROOT, 'tests');
|
||||
// Overrides the ROOT that non-`tests/` glob base directories (scripts/,
|
||||
// eslint-rules/, bin/lib/, pi/, examples/, gsd-core/bin/, vscode/,
|
||||
// eslint-rules/, bin/lib/, pi/, examples/, msd-core/bin/, vscode/,
|
||||
// .kilo/plugins/, .opencode/plugins/ — see deriveNoSourceGrepGlobs) are
|
||||
// resolved under. TESTS_DIR already has its own override (above) for the
|
||||
// `tests/**/*.cjs` block; this is the equivalent knob for every OTHER block
|
||||
// that registers `local/no-source-grep`, so sandbox fixtures can exercise
|
||||
// the widened scan scope (#3464 phase 5 BLOCKER fix) without the test suite
|
||||
// re-scanning this repo's real scripts/eslint-rules/etc. trees on every run.
|
||||
const EXTRA_ROOT = process.env.GSD_LINT_ALLOW_TEST_RULE_EXTRA_ROOT || ROOT;
|
||||
const EXTRA_ROOT = process.env.MSD_LINT_ALLOW_TEST_RULE_EXTRA_ROOT || ROOT;
|
||||
const ALLOWLIST_PATH =
|
||||
process.env.GSD_LINT_ALLOW_TEST_RULE_ALLOWLIST ||
|
||||
process.env.MSD_LINT_ALLOW_TEST_RULE_ALLOWLIST ||
|
||||
path.join(__dirname, 'lint-allow-test-rule-refs.allowlist.json');
|
||||
const EFFECTIVE_CEILING_PATH =
|
||||
process.env.GSD_LINT_ALLOW_TEST_RULE_EFFECTIVE_CEILING ||
|
||||
process.env.MSD_LINT_ALLOW_TEST_RULE_EFFECTIVE_CEILING ||
|
||||
path.join(__dirname, 'lint-allow-test-rule-refs.effective-ceiling.json');
|
||||
const UNVERIFIED_CEILING_PATH =
|
||||
process.env.GSD_LINT_ALLOW_TEST_RULE_UNVERIFIED_CEILING ||
|
||||
process.env.MSD_LINT_ALLOW_TEST_RULE_UNVERIFIED_CEILING ||
|
||||
path.join(__dirname, 'lint-allow-test-rule-refs.unverified-ceiling.json');
|
||||
|
||||
/** Matches a compliant issue reference or URL */
|
||||
@@ -247,7 +247,7 @@ function extractGenuineMarkerReasons(allComments) {
|
||||
* (`tests/helpers/**`, `tests/qa/**`, `tests/fixtures/**`, ...) AND every one
|
||||
* of the other config blocks the rule is registered on (`scripts/** /*.cjs`,
|
||||
* `eslint-rules/** /*.cjs`, `bin/lib/** /*.cjs`, `pi/** /*.cjs`,
|
||||
* `examples/** /*.cjs`, `gsd-core/bin/** /*.cjs`, `vscode/*.js`,
|
||||
* `examples/** /*.cjs`, `msd-core/bin/** /*.cjs`, `vscode/*.js`,
|
||||
* `.kilo/plugins/*.js`, `.opencode/plugins/*.js`). A marker in any of those
|
||||
* would vanish from BOTH reported numbers instead of tripping anything.
|
||||
*
|
||||
@@ -365,9 +365,9 @@ function globToRegExp(glob) {
|
||||
*
|
||||
* Each glob's literal base directory (`globBaseDir`) is resolved to an
|
||||
* actual directory on disk: the `tests` base uses `testsDir` (the existing
|
||||
* `GSD_LINT_ALLOW_TEST_RULE_TESTS_DIR` override contract, unchanged), every
|
||||
* `MSD_LINT_ALLOW_TEST_RULE_TESTS_DIR` override contract, unchanged), every
|
||||
* other base is resolved under `extraRoot` (defaults to `ROOT`, overridable
|
||||
* via `GSD_LINT_ALLOW_TEST_RULE_EXTRA_ROOT` so sandbox fixtures can exercise
|
||||
* via `MSD_LINT_ALLOW_TEST_RULE_EXTRA_ROOT` so sandbox fixtures can exercise
|
||||
* the widened scan scope in isolation). Matching itself is always done
|
||||
* against the glob's own repo-relative path string (e.g. `tests/foo.cjs`,
|
||||
* `scripts/bar.cjs`), never against the physical scan location, so a
|
||||
|
||||
Reference in New Issue
Block a user