I have written an API and defined a method which a user needs to call on a certain condition. Suppose a user is creating a video app then he should implement mute function in his code (which is defined in a javascript API or file). Now I am looking for a code analyzer by which i can check wether he has implemented this (in his JS file) in a correct way. According to me I think this will be a custom rule and I want to make this project in Java, so that I can take the source code( Which is a js file or html file) and do this analysis on that source code.
So is there any code analyzer tool available ?
how can i compile this idea?
And what are the possible way?
Many many thanks to all.