mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] dw_dev2019-05-25 01:39 pm
Entry tags:

perltidy now required!

Hi all,

I've gone ahead and run perltidy on our codebase and added a test that will run and tell you if things are tidy or not. This is now required for all PRs and code we're merging.

To set up and run it locally, first make sure your modules are up to date:

bin/checkconfig.pl

This will probably ask you to install some modules, do so! Then you can run tidyall and it will automatically reformat all of your files as necessary:

perl -I$LJHOME/extlib/lib/perl5 $LJHOME/extlib/bin/tidyall -a

The first time you run this will take a while. It caches the results though so further runs will be much, much faster.

That should be it -- let me know if this works for you or if you have any issues!

[personal profile] casimirian 2019-05-25 11:20 pm (UTC)(link)
Thank you!
kareila: Taking refuge from falling debris under a computer desk. (computercrash)

[personal profile] kareila 2019-06-22 04:13 pm (UTC)(link)
For those who aren't following along with [site community profile] changelog, it was subsequently discovered that version 20190601 significantly changed its output, so that's the minimum required version at this point.
kareila: IT prepares you for a life of fighting with PCs nonstop. (sysadmin)

[personal profile] kareila 2019-06-22 05:58 pm (UTC)(link)
Relatedly, I discovered that checkconfig.pl --install wouldn't install the newer version of perltidy if an older one already existed, so I had to do this manually: cpanm -n -L $LJHOME/extlib/ Perl::Tidy

(Anonymous) 2021-09-10 09:11 pm (UTC)(link)
Hi!
There are NO 'extlib' folder! Where can I get it? Thanx.