projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e60c6f6
)
Stop requiring an explicit return from perl subroutines
author
Andrew Dunstan
<andrew@dunslane.net>
Tue, 14 Apr 2020 20:55:34 +0000
(16:55 -0400)
committer
Andrew Dunstan
<andrew@dunslane.net>
Tue, 14 Apr 2020 20:55:34 +0000
(16:55 -0400)
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
src/tools/perlcheck/perlcriticrc
patch
|
blob
|
blame
|
history
diff --git
a/src/tools/perlcheck/perlcriticrc
b/src/tools/perlcheck/perlcriticrc
index 314c83c6a59a425b58aaceb7db300dbadf7e7065..e230111b232bf6d9ac59fa39df124858bbfd1449 100644
(file)
--- a/
src/tools/perlcheck/perlcriticrc
+++ b/
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