|Version 1 (modified by szabgab, 2 years ago) (diff)|
The CPAN module Perl::Critic provides a way to check perl code according to certain rules. The Padre::Plugin::Critic provides a simple interface to run these checks.
- Create a new document
- Type in the following code:
$file = "abc"; open FH, $file;
- Run Tools/Perl? Critic/Perl::Critic current document
- The output window at the bottom of the screen should open and show the following:
Perl::Critic running with default or user configuration Code before strictures are enabled at line 1, column 1. See page 429 of PBP. Bareword file handle opened at line 2, column 1. See pages 202,204 of PBP. Two-argument "open" used at line 2, column 1. See page 207 of PBP.
- test in saved files
- test on non-perl files
- test what happens if no file is opened
- Build a GUI to allow the user to see all the available rules and allow them to create a configuration file using this GUI
- Allow the user to click on the report lines and jump to the actual code in the editor and/or to see the documentation of the specific issue