Stop requiring an explicit return from perl subroutines

The consensus of the project appears to be that this provides little
benefit and is simply an annoyance.

Discussion: https://postgr.es/m/27481.1586618092@sss.pgh.pa.us
pull/51/head
Andrew Dunstan 6 years ago
parent e60c6f6ea1
commit 0516f94d18
  1. 4
      src/tools/perlcheck/perlcriticrc

@ -22,7 +22,3 @@ verbose = %f: %m at line %l, column %c. %e. ([%p] Severity: %s)\n
# insist on use of the warnings pragma
[TestingAndDebugging::RequireUseWarnings]
severity = 5
# for now raise severity of this to level 5
[Subroutines::RequireFinalReturn]
severity = 5

Loading…
Cancel
Save