perlcritic: explicitly assign the result of readdir/file reads
[?]
Sep 8, 2021, 1:53 AM
6MNLYIXOKSKRWL2GYOOW7BG2ZS5MWGLJQHVXED4GPLLI7XWKKPOACDependencies
- [2]
4VVBCVPDSoTest: read credentials from file - [3]
L6PVAEWJperlcritic: don't open files as bare words - [4]
HTL6HIBMmachine-status: Read /etc/nix.machines instead of using the BuildMachines table - [5]
UGA45FNCAdd a plugin for backing up builds in s3 - [6]
FW4PJE5KAdd SoTest plugin - [7]
O3NM62IZSupport multiple machines files - [8]
THUMRES3hydra: add Coverity Scan plugin - [*]
2GK5DOU7* Downloading closures.
Change contents
- replacement in src/lib/Hydra/Helper/Nix.pm at line 346
while (<$conf>) {while (my $line = <$conf>) { - replacement in src/lib/Hydra/Helper/Nix.pm at line 350
my @tokens = split /\s/, $_;my @tokens = split /\s/, $line; - replacement in src/lib/Hydra/Plugin/CoverityScan.pm at line 56
while (readdir $tarballshandle) {next unless $_ =~ /.*-coverity-int\.(tgz|lzma|xz|bz2|zip)$/;$covTarball = "$tarballs/$_"; last;while (my $file = readdir $tarballshandle) {next unless $file =~ /.*-coverity-int\.(tgz|lzma|xz|bz2|zip)$/;$covTarball = "$tarballs/$file"; last; - replacement in src/lib/Hydra/Plugin/SoTest.pm at line 105
while (<$authfile>) {if ( $_ =~ /(.+):(.+)/m ) {while (my $line = <$authfile>) {if ( $line =~ /(.+):(.+)/m ) { - replacement in t/s3-backup-test.pl at line 43
while(readdir $dir) {next if $_ eq "." or $_ eq "..";unlink "$gcRootsDir/$_";while(my $file = readdir $dir) {next if $file eq "." or $file eq "..";unlink "$gcRootsDir/$file";