public JavaScriptTaskTagDetector(){
addSupportedExtension("js");
}
public void doDetect() throws Exception {
JavaScriptModel model = new JavaScriptModel(this.contents);
JavaScriptComment[] comments = model.getComments();
for(int i=0;i<comments.length;i++){
detectTaskTag(comments[i].getText(), comments[i].getOffset());
}
}