EDAVIS via RT wrote:
Show quoted text> ValuesAndExpressions::ProhibitMagicNumbers is a useful policy, but if it
> allows 1 and 2 as literal values it should also allow -1 and -2.
>
> -1 is particularly needed for testing the result of index().
Not allowing 1 is not exactly an option. And you can't treat negative and positive values the same-- they have very different significance to people.
I think 2 is used a lot more than -2 is.
Anyway, this is why the module is configurable. If you want -1 and -2 to be allowed, configure them to be.