Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
launch (done) {
let optionsRC = this.getRCFile(this.options.rulesFile);
this.options.htmlhint = [];
for (var key in HTMLHint.defaultRuleset) {
if (HTMLHint.defaultRuleset.hasOwnProperty(key)) {
this.options.htmlhint[key] = 1;
}
}
for (var rule in optionsRC) {
if (optionsRC[rule]) {
this.options.htmlhint[rule] = optionsRC[rule];
} else {
delete this.options.htmlhint[rule];
}
}
glob(this.options.src, (er, files) => {
this.processFiles(files, this.options);
this.closeReporter(this.options.report);
launch (done) {
let optionsRC = this.getRCFile(this.options.rulesFile);
this.options.htmlhint = [];
for (var key in HTMLHint.defaultRuleset) {
if (HTMLHint.defaultRuleset.hasOwnProperty(key)) {
this.options.htmlhint[key] = 1;
}
}
for (var rule in optionsRC) {
if (optionsRC[rule]) {
this.options.htmlhint[rule] = optionsRC[rule];
} else {
delete this.options.htmlhint[rule];
}
}
glob(this.options.src, (er, files) => {
this.processFiles(files, this.options);
this.closeReporter(this.options.report);