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 (Bishop) 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.