Item8290: perl build.pl tidy does not handle special charaters

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release:
Applies To: Extension
Component: BuildContrib
Branches:
Reported By: Foswiki:Main.AndrewJones
Waiting For: Foswiki:Main.AndrewJones
Last Change By: AndrewJones
When I run perl build.pl tidy on Kino Search, the special characters used in some of the tests get corrupted, leaving syntactically incorrect perl.

-- AndrewJones - 25 Sep 2009

This needs to get reported upstream against Perl::Tidy::perltidy, which is what BuildContrib uses. A detailed testcase is required; what characters?

-- CrawfordCurrie - 27 May 2010

For characters that perltidy does not handle correctly, you can use the following comments to force it to skip those lines:

#<<<  do not let perltidy touch this
    my @list = (1,
                1, 1,
                1, 2, 1,
                1, 3, 3, 1,
                1, 4, 6, 4, 1,);
 #>>>

From http://perltidy.sourceforge.net/perltidy.html#skipping_selected_sections_of_code

-- AndrewJones - 06 Dec 2010

 

ItemTemplate edit

Summary perl build.pl tidy does not handle special charaters
ReportedBy Foswiki:Main.AndrewJones
Codebase
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Extension
Component BuildContrib
Priority Normal
CurrentState No Action Required
WaitingFor Foswiki:Main.AndrewJones
Checkins
ReleasedIn n/a
Topic revision: r3 - 06 Dec 2010, AndrewJones
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy