rule: String contains a valid GString token
Brought to you by:
chrismair
Create a violation when a String contains a dollar sign and what looks like an in-scope variable:
def foo = '123'
def bar = 'foo: $foo' // violation, foo is in scope
def bar = 'baz: $baz' // not a violation, baz is not in scope
I see this mistake a lot.
fixed by #407: New GStringExpressionWithinString rule
Last edit: Artur Gajowy 2013-04-10