#494 Regexp checks should have an option "ignore strings"

Future
open
nobody
Check (274)
5
2012-10-10
2008-09-18
Torgny Andersson
No

The proposed "ignore strings" option would work similarly to the "ignore comments" option that is available for the RegExp check. By checking the "ignore strings" option the check will not run the RegExp on comments.

Such an option is useful, for instance, for finding multiple spaces in source code ('public class SomeClass {'), but still allowing multiple spaces in strings ('String s = " indented value";').

Discussion