[Codenarc-user] Illegal Regex Ignore String and Comments
Brought to you by:
chrismair
From: Eric W. <eri...@gm...> - 2014-11-03 21:19:18
|
Hi, I'm using the Illegal Regex rule to disallow a few specific things in my groovy code. Is there a way to make the rule ignore strings and comments? For exemple, I want any question marks to be preceded by a space, but I'd like to not cause a violation if this occurs in a string or a comment (especially since strings may contain URIs with parameters specified using question marks) Thanks, Eric Wehrmeister |