You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-17 01:12:23 +02:00
Closed #173: Add static source code analysis
Perl Critic added and passes on gentle. A policy file has been created with some permanent exceptions and a list of policies to be fixed in approximately the order they should be fixed in.
This commit is contained in:
@ -436,14 +436,6 @@ sub BackRestTestCommon_Setup
|
||||
$bNoCleanup = $bNoCleanupParam;
|
||||
$bLogForce = $bLogForceParam;
|
||||
|
||||
# Check the exe for warnings
|
||||
my $strWarning = trim(executeTest("perl -cW ${strCommonCommandRemote} 2>&1"));
|
||||
|
||||
if ($strWarning ne "${strCommonCommandRemote} syntax OK")
|
||||
{
|
||||
confess &log(ERROR, "${strCommonCommandRemote} failed syntax check:\n${strWarning}");
|
||||
}
|
||||
|
||||
# Get the Postgres version
|
||||
my $strVersionRegExp = '(devel|((alpha|beta|rc)[0-9]+))$';
|
||||
my $strOutLog = executeTest($strPgSqlBin . '/postgres --version');
|
||||
|
Reference in New Issue
Block a user