[OpenAFS-devel] coding standards proposal

Neulinger, Nathan nneul@umr.edu
Thu, 23 Jan 2003 15:48:30 -0600


Actually, I would suggest having commitinfo return an error and message
if the being-checked-in file is not identical to the output of indent on
the same file. That would indicate that it didn't have proper
indentation.

Not sure if it should be an error or warning though. Probably just a
warning though, as the file is bound to be reformatted again later.
Warning should probably include a diff between the non-indented and
indented versions, as it will be a good check for bad patches that have
missing braces/etc. cause the diff will be enormous.=20

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@umr.edu
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216


> -----Original Message-----
> From: Russ Allbery [mailto:rra@stanford.edu]=20
> Sent: Thursday, January 23, 2003 3:27 PM
> To: openafs-devel@openafs.org
> Subject: Re: [OpenAFS-devel] coding standards proposal
>=20
>=20
> Jim Rees <rees@umich.edu> writes:
>=20
> > Expanding tabs is a possibility, but I'm not convinced it's=20
> necessary.
>=20
> One of the nice things about eliminating tabs is that the first column
> added by diff then doesn't ever mess up the indentation.
>=20
> > It would require changes in the way we do things.  In=20
> particular, for me
> > at least, "cvs commit" would have to do the expansion,=20
> because not all
> > the code I check in comes from my editor, and my normal=20
> sanity checks
> > (cvs diff) won't catch tabs.  Maybe this could be done on the cvs
> > server?
>=20
> You can do a check in commitinfo and make sure there aren't=20
> any tabs.  I'm
> not sure if you can untabify from there as well.
>=20
> --=20
> Russ Allbery (rra@stanford.edu)            =20
> <http://www.eyrie.org/~eagle/>
>=20
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
>=20