Re: Cleaning up perl code
Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-05-20T20:39:34Z
Lists: pgsql-hackers
Attachments
- 0001-Prohibit-unused-variables.patch (text/x-diff)
Alexander Lakhin <exclusion@gmail.com> writes: > Hello hackers, > > Please look at a bunch of unused variables and a couple of other defects > I found in the perl code, maybe you'll find them worth fixing: Nice cleanup! Did you use some static analysis tool, or did look for them manually? If I add [Variables::ProhibitUnusedVariables] to src/tools/perlcheck/perlcriticrc, it finds a few more, see the attached patch. The scripts parsing errcodes.txt really should be refactored into using a common module, but that's a patch for another day. - ilmari
Commits
-
Clean up more unused variables in perl code
- dd569214aa7d 18.0 landed
-
Cleanup perl code from unused variables and routines
- 0c1aca461481 18.0 landed
-
Fix comment in 024_add_drop_pub.pl
- 53785d2a2aaa 17.0 landed