perlcritic - Mailing list pgsql-hackers

From Peter Eisentraut
Subject perlcritic
Date
Msg-id 55E52225.4040305@gmx.net
Whole thread Raw
Responses Re: perlcritic  (Michael Paquier <michael.paquier@gmail.com>)
Re: perlcritic  (Andrew Dunstan <andrew@dunslane.net>)
Re: perlcritic  (Andres Freund <andres@anarazel.de>)
Re: [HACKERS] perlcritic  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
We now have 80+ Perl files in our tree, and it's growing.  Some of those
files were originally written for Perl 4, and the coding styles and
quality are quite, uh, divergent.  So I figured it's time to clean up
that code a bit.  I ran perlcritic over the tree and cleaned up all the
warnings at level 5 (the default, least severe).

Testing guidelines:

- Many files are part of the regular build or test process.

- msvc files need to be tested separately.  I tested as best as I could
on a non-Windows system.

- There are a couple of one-offs in contrib and src/test that need to be
run manually.

- The stuff under utils/mb/Unicode/ has a makefile that is not part of
the normal build process.  I'll send in a few more patches to that in a
separate message that should help testing.

To install perlcritic, run

    cpan -i Perl::Critic

and then run

    perlcritic .

at the top of the tree (or a subdirectory).

Attachment

pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: pg_stat_statements query jumbling question
Next
From: Pavan Deolasee
Date:
Subject: Re: Horizontal scalability/sharding