Menu

#69 create excessive string concatenation (should be GString) ru

open
nobody
None
5
2013-02-16
2010-11-10
No

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.

Discussion


Log in to post a comment.