create rule: prefer head()/first() to get(0) and [0]
passes: def x = [0, 1, 2] def y = x.head() def z = x.first() def a = x.get(1) fail: def x = [0, 1, 2] def y = x.get(0) def z = x[0]
Hi Guys,
I'd like to implement this one.
Thanks, Victor
Log in to post a comment.
Hi Guys,
I'd like to implement this one.
Thanks,
Victor