chore(tslint): custom rules invoke superclass methods (#6215)

A few rules are not implemented properly because their associated walker is overwriting hooks from the `SyntaxWalker` superclass. Those custom hooks need to invoke the method on the superclass as well.

See https://palantir.github.io/tslint/develop/custom-rules/
This commit is contained in:
Paul Gschwendtner
2017-08-02 23:33:56 +02:00
committed by tinayuangao
parent 2364cfe8ab
commit f19d2e52ee
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -28,7 +28,9 @@ class NoExposedTodoWalker extends Lint.RuleWalker {
this.addFailureAt(commentRange.pos, commentRange.end - commentRange.pos, ERROR_MESSAGE);
}
});
super.visitSourceFile(sourceFile);
}
}
exports.Rule = Rule;
exports.Rule = Rule;
@@ -50,6 +50,8 @@ class RequireLicenseBannerWalker extends Lint.RuleWalker {
if (licenseCommentPos !== 0) {
return this.addFailureAt(0, 0, ERROR_MESSAGE, tslintFix);
}
super.visitSourceFile(sourceFile);
}
}