How to enable PerlCritic support in Komodo IDE 5.1 ​​on Windows?

I am trying to enable PerlCritic support in Komodo.

The official word from ActiveState, the creators of Komodo IDE 5.1 ​​(Win 32):

"To enable PerlCritic support, install the Perl-Critic and critical modules.

Well, the Perl-Critic installation was a piece of cake:

ppm install Bundle-Perl-Critic 

However, I go through each repository in PPM4 (trouchelle and the usual suspects), and they don't seem to have a module called "criticism." I installed many modules using CPAN and PPM, but this module is still the most elusive. Did I miss something?

Has anyone succeeded in supporting PerlCritic in Komodo 5.1 on Windows? Hope to hear from you again. This feature works fine on MacOS and Linux, though ... hmmm.

alt text

+6
perl winapi ide komodo perl-critic
source share
4 answers

I downloaded criticism.pm directly from CPAN - criticism and copied it to the Perl library folder and now it works. However, this did not work right away. I had to restart Komodo several times before the settings took effect. Weird In any case, thanks to the guys for all the suggestions.

0
source share

The criticism module is available in CPAN and is used as a pragma.

Basically, using pragma in your code runs your code through Perl::Critic before each execution, this is an alternative to using the perlcritic command-line perlcritic .

Here, apart from the document:

This pragma enforces coding standards and promotes the best practices for your file through Perl :: Critic before each execution. In a production system, this is usually not possible because it adds a lot of overhead when starting up. If you have a separate development environment, you can effectively circumvent the criticism of the pragma without installing Perl :: Critic in the production environment. If Perl :: Criticism cannot be loaded, then the criticism simply fails.

+5
source share

ppm install criticism should work with ActivePerl. What mistake do you get when you try?

Once the two modules are installed in the current version of Perl, Komodo uses the Perl-Critic options in [Preferences | Language | Perl] must be enabled.

+2
source share

You can still install modules on ActivePerl with a CPAN shell. Of course, you cannot install C-based modules unless you have MSVC (free version available) or gcc (ppm install gcc), but in your case the criticism is only perl modules.

PS What version of ActivePerl are you using?

0
source share

All Articles