
KomodoIntegration - Integrating perlcritic and Komodo.

This document describes the steps for integrating perlcritic with Komodo 4.0 from ActiveState. More information about Komodo can be found at http://www.activestate.com
These instructions assume that perlcritic has been installed somewhere in your $PATH.
If it is not in your $PATH,
you must give the full path to perlcritic instead of using the -S switch.
Also,
I'm assuming that you have installed Perl-Critic with the same Perl that Komodo is using.
If that is not the case,
you'll probably have to give a full path to perl instead of using the %perl placeholder.
Toolbox -> Add -> New Command... from the menu.Command: field,
enter the following:
%perl -S perlcritic --severity=%(ask:Severity level [1-5]?:5) --verbose=1 %F
Insert output and Pass selection as input boxes.Run in: drop-down list, select Command Output Tab.Do not open output pane box.Parse output with: box, and type this into the field:
^(?P<file>.+):(?P<line>.+):(?P<column>.+):(?P<content>.+)$
Show parsed output as a list box.Key Binding tab.New Key Sequence text field, and press Ctrl-Alt-p.Add button.OK button.Now to run perlcritic on the current file, just press Ctrl-Alt-p, or select perlcritic from the Toolbox menu. Each time, you will be prompted to enter the minimum severity level (defaulting to 5). After a few moments, the output will appear in the Command Output pane. By double-clicking on the output messages, you can navigate to the appropriate point in the code.

Jeffrey Ryan Thalhammer <thaljef@cpan.org>

Copyright (c) 2005-2008 Jeffrey Ryan Thalhammer. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.