forked from azl397985856/leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-format.js
More file actions
30 lines (22 loc) · 777 Bytes
/
check-format.js
File metadata and controls
30 lines (22 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// const util = require("util");
// const glob = util.promisify(require('glob'));
// const fs = require("fs").promises;
// const path = require('path');
// async function main() {
// var errors = [];
// var directories = await glob(__dirname + '../../**/*.md');
// for (var filePath of directories) {
// var data = await fs.readFile(filePath, 'utf8');
// var filename = path.parse(filePath).base.replace(".md", "");
// // do check
// }
// if (errors.length > 0) {
// for (var error of errors) {
// console.error(error + "\n");
// }
// var message = `Found ${errors.length} errors! Please fix!`;
// throw new Error(message);
// }
// }
// main();
console.log('TO BE IMPLEMENTED')