antler
Version:
Directory structure linter
16 lines • 511 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoEmptyDirectory = void 0;
const rule_1 = require("../rule");
class NoEmptyDirectory extends rule_1.Rule {
run(node) {
if (node.isDirectory && !node.childNames.length) {
this.report(`Directory ${node.path} does not have any contents`);
}
}
getName() {
return 'NoEmptyDirectory';
}
}
exports.NoEmptyDirectory = NoEmptyDirectory;
//# sourceMappingURL=no-empty-directory.js.map