I want to create an extension to recognize specific comments in my code. I will use this to signal code smells by using the //@ comment prefix. One feature of this extension will be to generate warnings for each comment encountered while compiling the code. Is it possible to do this?
I want to create an extension to recognize specific comments in my code. I
Share
I don’t think you can hook into the compiler to generate warning. However, the “Error List” view aggregates errors, warnings and messages from multiple sources. Would it be good enough for you to simply append to that list?
Here’s a link I could find on the subject : http://www.mztools.com/articles/2008/MZ2008022.aspx