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
Toolbox -> Add -> New Command...from the menu.
Enter a name for the command (e.g. "perlcritic").
Command:field, enter the following:
%perl -S perlcritic --severity=%(ask:Severity level [1-5]?:5) --verbose=1 %F
Pass selection as inputboxes.
Run in:drop-down list, select
Command Output Tab.
Do not open output panebox.
Parse output with:box, and type this into the field:
Show parsed output as a listbox.
New Key Sequencetext field, and press
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 <email@example.com>
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.