############################################################################## # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/extras/KomodoIntegration.pod $ # $Date: 2008-06-22 11:08:37 -0700 (Sun, 22 Jun 2008) $ # $Author: clonezone $ # $Revision: 2467 $ ############################################################################## =head1 NAME KomodoIntegration - Integrating perlcritic and Komodo. =head1 DESCRIPTION This document describes the steps for integrating F with Komodo 4.0 from ActiveState. More information about Komodo can be found at L These instructions assume that F has been installed somewhere in your C<$PATH>. If it is not in your C<$PATH>, you must give the full path to F instead of using the C<-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 F instead of using the C<%perl> placeholder. =over 4 =item * Start Komodo. =item * Select C<< Toolbox -> Add -> New Command... >> from the menu. =item * Enter a name for the command (e.g. "perlcritic"). =item * In the C field, enter the following: %perl -S perlcritic --severity=%(ask:Severity level [1-5]?:5) --verbose=1 %F =item * Uncheck the C and C boxes. =item * In the C drop-down list, select C. =item * Uncheck the C box. =item * Check the C box, and type this into the field: ^(?P.+):(?P.+):(?P.+):(?P.+)$ =item * Check the C box. =item * Click the C tab. =item * Click the C text field, and press C. =item * Click the C button. =item * Click the C button. =back Now to run F on the current file, just press C, or select C from the C 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 C pane. By double-clicking on the output messages, you can navigate to the appropriate point in the code. =head1 AUTHOR Jeffrey Ryan Thalhammer =head1 COPYRIGHT 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. =cut ############################################################################## # Local Variables: # mode: cperl # cperl-indent-level: 4 # fill-column: 78 # indent-tabs-mode: nil # c-indentation-style: bsd # End: # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :