You are here: Foswiki>Tasks Web>Item15151 (01 Jul 2022, MichaelDaum)Edit Attach

Item15151: Perl::Critic flagging issues

Priority: Normal
Current State: New
Released In: n/a
Target Release: n/a
Applies To: Engine
Branches: Release02x01 master
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
I recently dived into Perl::Critic and found it to be a massively useful tool. Only problem is on agreeing or not with the findings it makes and thus configure it to our needs. Perl Best Practice is quite a reading. Perl::Critic regularly refers to it with a page number the test is based on. Some of the arguing there is a bit questionable but that's why Perl::Critic can be customized to the own coding standards.

See Development.PerlCritic for more.

For issues still being reported as a violation we can decide to sanction them using "## no critic" comments, as in

no warnings 'redefine'; ## no critic
warnings 'redefine';

This too is a common pattern in Foswiki while "monkey patching" code already loaded.

-- MichaelDaum - 29 Jun 2022

Topic revision: r3 - 01 Jul 2022, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy