Menu

#70 create excessive string newlines (should be multiline string

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

create excessive string newlines (should be multiline string) rule
Should Pass as is not "excessive"
def x = "xyz\n"
def x = "xyz\n" + foo()

Should fail as is "excessive"
def x = "abc\n" + foo() + "xyz\n"
def x = "abc" + foo() + x + "xyz"
Logic: any time strings or string concatenation is used and there is more than 1 newlien then use a multiline string.
Maybe the "excessive" number is a property.

Discussion


Log in to post a comment.