From: Steve Hancock Date: Sun, 7 Jan 2024 00:55:45 +0000 (-0800) Subject: add a perltidyrc file to automate some checks X-Git-Tag: 20230912.12~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9a934a7c89e53af57fc39e37ddefa112e4e97a5b;p=perltidy.git add a perltidyrc file to automate some checks --- diff --git a/.perlcriticrc b/.perlcriticrc index 9430a230..77378139 100644 --- a/.perlcriticrc +++ b/.perlcriticrc @@ -183,3 +183,7 @@ allow = if unless # and error reporting. [InputOutput::RequireCheckedSyscalls] exclude_functions = print + +# Use a perltidyrc which does some warning checks +[CodeLayout::RequireTidyCode] +perltidyrc = perltidyrc diff --git a/perltidyrc b/perltidyrc index 602ec0a3..682b86d4 100644 --- a/perltidyrc +++ b/perltidyrc @@ -1,4 +1,6 @@ # perltidyrc file for perltidy +# Note that this is not named .perltidyrc because that would interfere +# with testing. This has to be requested with -pro=perltidyrc # warnings --warning-output