create excessive string concatenation (should be GString) ru
Brought to you by:
chrismair
create excessive string concatenation (should be GString) rule
Should Pass as is not "excessive"
def x = foo() + "xyz"
def x = "xyz" + foo()
Should fail as is "excessive"
def x = "abc" + foo() + "xyz"
def x = "abc" + foo() + x + "xyz"
Logic: any time string concatenation is used and there is more than 1 Constant then use a GString.
Maybe the "excessive" number is a property.