Send Language in options #1105
-
Hi All, I want to do plagiarism check for html, sql language, I have installed respective tree sitter library.
I also tried sending the language using options const instance = new dolos.Dolos();
instance.options.language = "html";
const report = instance.analyzePaths(files); but it still doesn't work, can you please help me with the same. |
Beta Was this translation helpful? Give feedback.
Answered by
VedikaGujar-GSLab
Apr 25, 2023
Replies: 1 comment 1 reply
-
I further modified the above code and it started working, please help to figure out if its the right solution const customOptions = {
language: "html"
}
const options = new dolos.Options(customOptions);
const instance = new dolos.Dolos(options);
const report = instance.analyzePaths(files); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rien
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I further modified the above code and it started working, please help to figure out if its the right solution