Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#168 Add message property for GenericIllegalRegexpCheck

release_3.1
closed
Check (274)
5
2012-10-10
2003-05-16
Dale King
No

When an GenericIllegalRegexpCheck subclass fails it gives
a message like

Line matches the illegal pattern '\s$'

That is not a very user friendly message particularly when
the pattern gets rather complex.

I propose that there be a string message property that can
be set for a given check. If that property is set then that
message will be used for the text of the message in the log.
If that property is not set (the default) then the current
standard message will be used.

That way I could instead of the above message have:

Line contains trailing whitespace.

So a user can know what failed without having to parse the
regular expression.

Discussion

  • Logged In: YES
    user_id=746148

    Integrated in CVS.
    added new property - "message".