Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

perltidyrc file not being used

by geraint (Novice)
on Apr 25, 2019 at 11:19 UTC ( #1232976=perlquestion: print w/replies, xml ) Need Help??

geraint has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I've installed perltidy but it doesn't seem to be using the options from the .perltidyrc file. According to the docs (http://perltidy.sourceforge.net/perltidy.html) it should check in the current directory for a .perltidyrc file first and use that one. From the directory containing the rc file I'm running the followng.

perltidy path/tp/file.pm > tmp.pm

There's a long comment which is not being indented in the block even though the content of my file is as follows:

-pbp -lp -bar -l=120 -nolq -vmll -cti=1 -pt=0 -vt=0 -vtc=0

How can I make sure perltidy is using my rc file? Running perltidy -dpro gives an output that matches the rc file including the -nolq option.

Thanks,

Ger

Replies are listed 'Best First'.
Re: perltidyrc file not being used
by hippo (Chancellor) on Apr 25, 2019 at 12:44 UTC
    There's a long comment which is not being indented in the block

    -nolq applies to long quotes, not long comments. Perhaps you want -nolc instead?

      Yes, you are right. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1232976]
Approved by marto
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2019-12-10 01:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?