bscan / PerlNavigator

Perl Language Server that includes syntax checking, perl critic, and code navigation
MIT License
198 stars 39 forks source link

tidyWrapper.pl: Pass -nst switch as $argv along to Perl::Tidy (fixes #36) #81

Closed jbob closed 1 year ago

jbob commented 1 year ago

-pbp (Perl best practices) which is often used, includes -st, which is incompatible with this script. But when using perltidy from the command line, -nst is not wanted in most cases.

This change adds the -nst option to the arguments passed to Perl::Tidy, making it work for .perltidyrc files which contain -pbp but not -nst.

More details:

bscan commented 1 year ago

Tested and merged. Thanks for the commit!