Hi Thom, thanks for reporting this issue, as it is clearly an annoying FP.
The check that implements this rule is actually not looking outside the scope of the method where the list gets created, and so it reports whenever the list is not modified locally by the method test
.
I have created a ticket to fix this, and hopefully we will be able to work on it in the near future.
Have a good day!