My department is currently settling on some general code best practices, which we would like to somewhat enforce, providing developers with Perl::Tidy
and Perl::Critic
configurations.
Now we are having problems with side comments. The side comment is this:
my $counter = 0; # Reset counter
We would prefer to not have side comments at all, since in most cases they can be written above the code in question, where they are more easily read. If at all possible, a Perl::Tidy
solution would be perfect, which would move a side comment to the line above it, second-best would be a Perl::Critic
policy (which I haven't found at CPAN either) and third-best and last would be developers taking care to point those comments out when they do code reviews.
Is it possible to implement with Perl::Tidy
or Perl::Critic
?