From 9a934a7c89e53af57fc39e37ddefa112e4e97a5b Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Sat, 6 Jan 2024 16:55:45 -0800 Subject: [PATCH] add a perltidyrc file to automate some checks --- .perlcriticrc | 4 ++++ perltidyrc | 2 ++ 2 files changed, 6 insertions(+) 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 -- 2.39.5