1
0
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:
David Steele
2016-02-23 09:25:22 -05:00
parent d35ab82a83
commit 048571e23f
20 changed files with 618 additions and 408 deletions

View File

@ -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');