iter(g06): 组件数门禁覆盖 README
This commit is contained in:
@@ -610,7 +610,7 @@ function checkReadme(pkgs) {
|
||||
function checkCountDocs(actual) {
|
||||
const issues = [];
|
||||
const re = /(\d+)\s*个(?:\s*DOM\s*)?组件/;
|
||||
for (const name of ['AGENTS.md', 'ARCHITECTURE.md']) {
|
||||
for (const name of ['AGENTS.md', 'ARCHITECTURE.md', 'README.md']) {
|
||||
const file = path.join(ROOT, name);
|
||||
if (!fs.existsSync(file)) continue; // 卫语句:文档缺失不校验
|
||||
fs.readFileSync(file, 'utf8').split(/\r?\n/).forEach((line, i) => {
|
||||
|
||||
Reference in New Issue
Block a user