User: Password:
|
|
Subscribe / Log in / New account

The coding style enforcer

The coding style enforcer

Posted May 13, 2005 23:25 UTC (Fri) by roelofs (guest, #2599)
In reply to: The coding style enforcer by NRArnot
Parent article: The coding style enforcer

If the patch is restricted to inserting whitespace, it could be validated by stripping all whitespace out of the affected code before and after applying the patch, and making sure that the result is identical.

Or just using indent to canonicalize both "before" and "after" versions, then running diff on the two trees.

Heck, a few tweaks should allow one to use indent directly as the style-enforcement tool...

Greg


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds