Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyPostfixLoop - Prohibit writing an postfix loop with no statement
The postfix loop is a common pattern, but you can accidentally add a semicolon and make it into a meaningless statement.
do_something($_) for @items; # ok do_something($_); for @items; # not ok $_++ for @items; # ok $_++; for @items; # not ok
This policy is not configurable except for the standard options.
Sawyer X <firstname.lastname@example.org>
This software is Copyright (c) 2018 by Sawyer X.
This is free software, licensed under:
The MIT (X11) License