Questions tagged [perl-critic]

Perl::Critic is an extensible framework for creating and applying coding standards to Perl source code. Essentially, it is a static source code analysis engine. Perl::Critic is distributed with a number of Perl::Critic::Policy modules that attempt to enforce various coding guidelines.

Perl module on CPAN: Perl::Critic

perlcritic: Command-line interface to critique Perl source.

Wikipedia link

61 questions
-1
votes
1 answer

how do i use Perl::Critic::Policy::ValuesAndExpressions::ProhibitMagicNumbers

I want to use module Perl::Critic::Policy::ValuesAndExpressions::ProhibitMagicNumbers to check for magic numbers only in a .C file use strict; use warnings; use Perl::Critic; open(my $FILE, "< test.c") or die $!; my $critic = Perl::Critic->new();…
Ad-vic
  • 519
  • 4
  • 18
1 2 3 4
5