GenericIllegalRegexps message depending on the source file

"Sven Pfeiffer" <[email protected]>
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Hi,

I would like to use checkstyle to keep track of the TODOs and FIXMEs in my projects.

So I added the following two checks:
<module name="GenericIllegalRegexp">
	<property name="format" value="FIXME"/>
      <property name="message" value="Fixme Comment: "/>
	<property name="severity" value="warning" />
</module>
<module name="GenericIllegalRegexp">
	<property name="format" value="TODO"/>
      <property name="message" value="Todo Comment: "/>
	<property name="severity" value="info" />
</module>

But now in my summary I only have the information where I have TODOs/FIXMEs, if possible I'd like to have the message that is in the source.

for example in my java-sourcefile I have a comment //TODO add exception handling
then I'd like to get (in xml):
<file name="java.source.Filename.java">
<error line="167" severity="info" message="Todo Comment: add exception handlin" source="com.puppycrawl.tools.checkstyle.checks.GenericIllegalRegexpCheck"/>
</file> 

Is this possible?

thanks in advance

SVen

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.