Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c5f4406

Browse files
alvherrepull[bot]
authored andcommitted
Fix perltidy breaking perlcritic
perltidying a "##no critic" line moves the marker to where it becomes useless. Put the line back to how it was, and protect it from further malfeasance. Per buildfarm member crake.
1 parent 6620f93 commit c5f4406

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/catalog/Catalog.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,10 @@ sub ParseData
315315
# We're treating the input line as a piece of Perl, so we
316316
# need to use string eval here. Tell perlcritic we know what
317317
# we're doing.
318-
eval '$hash_ref = '
319-
. $_; ## no critic (ProhibitStringyEval)
318+
#<<< protect next line from perltidy
319+
# so perlcritic annotation works
320+
eval '$hash_ref = ' . $_; ## no critic (ProhibitStringyEval)
321+
#>>>
320322
if (!ref $hash_ref)
321323
{
322324
die "$input_file: error parsing line $.:\n$_\n";

0 commit comments

Comments
 (0)