You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to apply ot to a typical perlcritic output
ot 'lib/Foo/Bar.pm: 2 is not one of the allowed literal values (-1, 0, 1). Use the Readonly or Const::Fast module or the "constant" pragma instead at line 141, column 36. (Policy: ValuesAndExpressions::ProhibitMagicNumbers'
Could not locate file
Should this work? If NOT are you planning to get this to work. Do you need help with that?
The text was updated successfully, but these errors were encountered:
package Foo;
use strict; use warnings;
our $VERSION = '0.1';
my $var = 17;
1;
perlcritic call
perlcritic --verbose '%f: %m at line %l, column %c. (Policy: %p)\n' --include ProhibitMagicNumbers Foo.pm
ot call
ot 'Foo.pm: 17 is not one of the allowed literal values (0, 1, 2). Use the Readonly or Const::Fast module or the "constant" pragma instead at line 7, column 11. (Policy: ValuesAndExpressions::ProhibitMagicNumbers)'
Could not locate file
I have tried to apply
ot
to a typicalperlcritic
outputShould this work? If NOT are you planning to get this to work. Do you need help with that?
The text was updated successfully, but these errors were encountered: