[Nfd-dev] trailing whitespace
Davide Pesavento
davidepesa at gmail.com
Thu Mar 27 14:10:01 PDT 2014
On Thu, Mar 27, 2014 at 9:51 PM, Alex Afanasyev
<alexander.afanasyev at ucla.edu> wrote:
> Hi guys,
>
> It isn't a strict requirement, but as a suggestion, the trailing whitespace is always looks odd in source files (and is marked red on gerrit). I do not want to introduce any intrusive options as it could be dangerious, but there is a simple way git itself can warn you/force to remove it before creating commits.
+1
In fact, I'd go one step further and add a code style rule that
forbids trailing whitespace in .cpp/.hpp source files. Most IDEs and
source code editors can automatically remove trailing whitespace upon
save.
Thanks,
Davide
More information about the Nfd-dev
mailing list