1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-10 14:22:35 +03:00

Clean up some perlcritic warnings

In Catalog.pm, mark eval of a string instead of a block as allowed.
Disallow perlcritic completely in Gen_dummy_probes.pl, as it's
generated code.
Protect a couple of lines in plperl code from  perltidy, so that the
annotation for perlcritic stays on the same line as the construct it
would otherwise object to.
This commit is contained in:
Andrew Dunstan
2018-05-07 15:21:00 -04:00
parent 17551f1a21
commit d2c1512ac4
4 changed files with 13 additions and 6 deletions

View File

@@ -51,9 +51,9 @@ sub ::encode_array_constructor
}
{
package PostgreSQL::InServer
; ## no critic (RequireFilenameMatchesPackage);
#<<< protect next line from perltidy so perlcritic annotation works
package PostgreSQL::InServer; ## no critic (RequireFilenameMatchesPackage)
#>>>
use strict;
use warnings;

View File

@@ -1,7 +1,8 @@
# src/pl/plperl/plc_trusted.pl
package PostgreSQL::InServer::safe
; ## no critic (RequireFilenameMatchesPackage);
#<<< protect next line from perltidy so perlcritic annotation works
package PostgreSQL::InServer::safe; ## no critic (RequireFilenameMatchesPackage)
#>>>
# Load widely useful pragmas into plperl to make them available.
#