#250 GenericIllegalRegexp: Should not fail inside of comments

release_3.4
closed
5
2012-10-10
2004-09-29
No

If I load the following module like this (like on the
documentation):

<module name="GenericIllegalRegexp">

<property name="format" value="System\.out\.println"/>
</module>

The test fails when I use the string: System.out on the
inside a block comment like this:

/*
System.out.print()
/

David Leal

Discussion

  • Daniel Grenner
    Daniel Grenner
    2004-09-30

    Logged In: YES
    user_id=883334

    You can use the "ignoreComments" option of
    GenericIllegalRegexp if you do not want text inside comments
    to be reported. (New feature in version 3.4.)

    /Daniel Grenner