We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 221331c commit 4250125Copy full SHA for 4250125
1 file changed
.github/manual_lint.js
@@ -30,6 +30,18 @@ async function main() {
30
}
31
32
33
+ // Check for files without extensions
34
+ for (var filePath of allFiles) {
35
+ const stats = await fs.stat(filePath);
36
+ // Only check files (not directories)
37
+ if (stats.isFile()) {
38
+ const extension = path.extname(filePath);
39
+ if (extension === '') {
40
+ errors.push(`文件 ${filePath} 不符合仓库的规范!文件必须有扩展名!`);
41
+ }
42
43
44
+
45
for (var filePath of directories) {
46
var data = await fs.readFile(filePath, 'utf8');
47
var filename = path.parse(filePath).base.replace(".md","");
0 commit comments