Skip to content

Add perl formatting support using Perltidy #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix comment
Signed-off-by: liuyehcf <liuyehcf@gmail.com>
  • Loading branch information
liuyehcf committed Jun 19, 2024
commit 79a037312ee02735dca1d77184e695d156193e73
1 change: 1 addition & 0 deletions vroom/perltidy.vroom
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ must be installed on your system. (But not for testing; vroom intercepts
system calls.)
:FormatCode perltidy
! perltidy .*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to fake the command output like this:

$ { "Cursor": 0 }

Otherwise the tests can't run without perltidy installed (and may get brittle, failing depending on the version of perltidy installed).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, and I'm not sure if I'm doing right because I don't really understand the syntax of .vroom.

$ { "Cursor": 0 }



Expand Down