Hi vpp-devs,

Having gotten bit by a checkstyle failure on my first submission, I decided to port the 
"go-like" functionality of auto-formatting the file (using indent since that's 
what vpp uses) on file save in Emacs.. Here's the lisp

 https://gist.github.com/choppsv1/c45a857ced56d4f9713eb7a555cfba2d

in case anyone would find it useful too. Personally, I like clang-format better 
(as it appears to have deterministic results), but that's not what the project 
chose. :)

FWIW, it only does the re-format on save if the file contains the magic string:

 "fd.io coding-style-patch-verification: ON"

Thanks,
Chris.

Attachment: signature.asc
Description: PGP signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13089): https://lists.fd.io/g/vpp-dev/message/13089
Mute This Topic: https://lists.fd.io/mt/31675798/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to