Skip to content

Commit

Permalink
Use qw() instead of explicit lists
Browse files Browse the repository at this point in the history
To comply with the perlcritic CodeLayout::ProhibitQuotedWordLists
policy.
  • Loading branch information
Julien-Elie committed Sep 4, 2024
1 parent 557e84c commit 9678dfb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 26 deletions.
2 changes: 1 addition & 1 deletion backends/sendinpaths.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $VERSION =~ s/INN //;
my $reportdays = 32;
my $keepdays = 0;

my @emailto = ('[email protected]');
my @emailto = qw([email protected]);
my $emaildef = join(' ', @emailto);
my $debug = 0;

Expand Down
39 changes: 14 additions & 25 deletions scripts/inncheck.in
Original file line number Diff line number Diff line change
Expand Up @@ -1157,31 +1157,20 @@ sub intersect {
return $i;
}

my @directories = (
'archive', 'badnews', 'batchdir', 'ctlprogs', 'most_logs', 'newsbin',
'newsetc', 'newslib', 'oldlogs', 'rnewsprogs', 'spooltemp', 'spool',
'spoolnews',
);
my @rnews_programs = ('bunbatch', 'c7unbatch', 'decode', 'encode', 'gunbatch');
my @newsbin_public = (
'actmerge', 'actsync', 'actsyncd', 'archive', 'batcher', 'buffchan',
'cnfsstat', 'controlbatch', 'controlchan', 'convdate', 'cvtbatch',
'delayer', 'docheckgroups', 'fastrm',
'getlist', 'grephistory', 'innconfval', 'inndf', 'innmail', 'innreport',
'innxbatch', 'innxmit', 'mailpost', 'news2mail', 'ninpaths',
'nntpget', 'nntpsend', 'perl-nocem', 'pgpverify', 'pullnews',
'scanspool', 'send-ihave', 'sendinpaths', 'send-uucp', 'sendxbatches',
'shlock', 'shrinkfile', 'simpleftp', 'sm', 'tinyleaf',
);
my @newsbin_private = (
'buffindexed_d', 'cnfsheadconf', 'ctlinnd', 'expire', 'expireover',
'expirerm', 'gencancel', 'imapfeed', 'inncheck', 'innfeed', 'innstat',
'innupgrade', 'innwatch', 'makedbz',
'makehistory', 'mod-active', 'news.daily', 'ovdb_init', 'ovdb_monitor',
'ovdb_server', 'ovdb_stat', 'overchan', 'ovsqlite-server',
'ovsqlite-util', 'procbatch', 'prunehistory', 'rc.news', 'scanlogs',
'tally.control', 'tdx-util', 'writelog',
);
my @directories = qw(archive badnews batchdir ctlprogs most_logs newsbin
newsetc newslib oldlogs rnewsprogs spooltemp spool spoolnews);
my @rnews_programs = qw(bunbatch c7unbatch decode encode gunbatch);
my @newsbin_public = qw(actmerge actsync actsyncd archive batcher buffchan
cnfsstat controlbatch controlchan convdate cvtbatch delayer docheckgroups
fastrm getlist grephistory innconfval inndf innmail innreport innxbatch
innxmit mailpost news2mail ninpaths nntpget nntpsend perl-nocem pgpverify
pullnews scanspool send-ihave sendinpaths send-uucp sendxbatches shlock
shrinkfile simpleftp sm tinyleaf);
my @newsbin_private = qw(buffindexed_d cnfsheadconf ctlinnd expire expireover
expirerm gencancel imapfeed inncheck innfeed innstat innupgrade innwatch
makedbz makehistory mod-active news.daily ovdb_init ovdb_monitor ovdb_server
ovdb_stat overchan ovsqlite-server ovsqlite-util procbatch prunehistory
rc.news scanlogs tally.control tdx-util writelog);

## The modes (min and max) for the various programs.
my %prog_modes = (
Expand Down

0 comments on commit 9678dfb

Please sign in to comment.