Perl::Critic adjustments
authorGreg Sabino Mullane <greg@endpoint.com>
Fri, 2 May 2008 15:54:45 +0000 (11:54 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Fri, 2 May 2008 15:54:45 +0000 (11:54 -0400)
.perlcriticrc
check_postgres.pl

index 1c429ba225fdcfbfe9527c0e631d21998792f87a..8f7e9174d6e397493c653ee69e6a43e42db013d7 100644 (file)
@@ -3,6 +3,9 @@
 verbose = 8
 severity = 1
 
+[Documentation::PodSpelling]
+stop_words = Mullane Nagios psql dbname postgres USERNAME usernames dbuser pgpass nagios stderr showperf symlinked timesync criticals quirm lancre exabytes sami includeuser excludeuser flagg tardis WAL tablespaces tablespace perflimit burrick mallory grimm oskar ExclusiveLock garrett artemus queryname speedtest checksum checksums morpork klatch pluto faceoff slon greg watson franklin wilkins scott Sabino Seklecki dbpass autovacuum Astill refactoring NAGIOS
+
 ## Severity 5:
 [-Subroutines::ProhibitNestedSubs]
 [-ValuesAndExpressions::ProhibitAccessOfPrivateData]
index bb1031cb7c967594b303ef28548b2fb31a8d8682..91a46ea7fcad7e55b82531e176ba4a4de2fb11dc 100755 (executable)
@@ -1627,7 +1627,7 @@ sub check_wal_files {
        my ($warning, $critical) = validate_range({type => 'integer', leastone => 1});
 
        ## Figure out where the pg_xlog directory is
-       $SQL = q{SELECT count(*) FROM pg_ls_dir('pg_xlog') WHERE pg_ls_dir ~ E'^[0-9A-F]{24}$'};
+       $SQL = q{SELECT count(*) FROM pg_ls_dir('pg_xlog') WHERE pg_ls_dir ~ E'^[0-9A-F]{24}$'}; ## no critic
 
        my $info = run_command($SQL);