Skip to content

Commit 541bd9a

Browse files
fix: exclude 'mmpm' module from README checks and missing dependency validation
1 parent 21d3961 commit 541bd9a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/check-modules/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,8 @@ async function analyzeModule({ module, moduleDir, issues, config }) {
912912
if (
913913
runDeepChecks &&
914914
fileName === "README.md" &&
915-
path.dirname(fullPath) === moduleDir
915+
path.dirname(fullPath) === moduleDir &&
916+
module.name !== "mmpm"
916917
) {
917918
const installSection = extractReadmeSection(
918919
content,
@@ -1013,7 +1014,7 @@ async function analyzeModule({ module, moduleDir, issues, config }) {
10131014
(dep) => !MISSING_DEPENDENCY_EXCEPTIONS.has(dep)
10141015
);
10151016

1016-
if (filteredMissingDependencies.length > 0) {
1017+
if (filteredMissingDependencies.length > 0 && module.name !== "mmpm") {
10171018
const rule = getRuleById(MISSING_DEPENDENCY_RULE_ID);
10181019
const dependencyList = filteredMissingDependencies
10191020
.map((name) => {

0 commit comments

Comments
 (0)