pg-critic.pl - Command line interface to critique PG problem code.
pg-critic.pl [options] file1 file2 ...
Options:
-f|--format Format of the output, either 'text' or 'json'.
'text' is the default and will output a plain text
listing of the results. 'json' will output results in
JavaScript Object Notation.
-o|--output-file Filename to write output to. If not provided output will
be printed to STDOUT.
-n|--no-details Only show the filename and badness score and do not
include the details in the output for each file.
-s|--strict Disable "## no critic" annotations and force all
policies to be enforced.
-p|--pg-only Only include PG critic policy violations and ignore
general Perl critic policy violations (both for the
score and display).
-h|--help Show the help message.
pg-critic.pl is a PG problem source code analyzer. It is the executable front-end to the WeBWorK::PG::Critic module, which attempts to identify usage of old or deprecated PG features and code that does not conform to current best-practices.