mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-11 02:08:42 +00:00
96d4a3ecf7
Due to historical reasons, the code is in subfolder "1". With SVN removal, we place the code back and remove the annoying "1" folder.
17 lines
356 B
JavaScript
17 lines
356 B
JavaScript
#!/usr/bin/env node
|
|
|
|
var lint = require("../test/lint/lint"),
|
|
path = require("path");
|
|
|
|
if (process.argv.length > 2) {
|
|
lint.checkDir(process.argv[2]);
|
|
} else {
|
|
process.chdir(path.resolve(__dirname, ".."));
|
|
lint.checkDir("lib");
|
|
lint.checkDir("mode");
|
|
lint.checkDir("addon");
|
|
lint.checkDir("keymap");
|
|
}
|
|
|
|
process.exit(lint.success() ? 0 : 1);
|