Re: GenericIllegalRegexps message depending on the source file

"Oliver Burn" <[email protected]>
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
You can do this by writing your own custom version of the
GenericIllegalRegexp check. This is not hard to do as you would just have to
modify the GenericIllegalRegexp source code to do the behaviour you require.

Also, be sure to read http://checkstyle.sourceforge.net/writingchecks.html

On 3/8/07, Sven Pfeiffer <[email protected]> wrote:
>
> 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
> _______________________________________________
> Checkstyle-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/checkstyle-user
>

-------------------------------------------------------------------------
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

_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
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.