This topic drives me crazy every time I come back to this code! From platform to platform, terminal variant to terminal variant, and then even editor changes like vim on Linux back to MacVim on MacOS, the indentation in the source files ALWAYS gets mucked up. Case in point (from this file I just looked at to fix #105):
An option I am taking from the Chameleon Mini firmware is to create a make style target in our Makefile that makes all of this (and other configurable nit picky coding style habits) easy to update:
My only reservation is that the resulting commit post-style formatting operation will be large and involve most of the source files. Of course, this is reasonable because we are pushing the lines over by spaces everywhere. I thought I would get input before doing this:
@ceheitsch Can you please weight in on the decision?
This topic drives me crazy every time I come back to this code! From platform to platform, terminal variant to terminal variant, and then even editor changes like
vim
on Linux back toMacVim
on MacOS, the indentation in the source files ALWAYS gets mucked up. Case in point (from this file I just looked at to fix #105):An option I am taking from the Chameleon Mini firmware is to create a
make style
target in ourMakefile
that makes all of this (and other configurable nit picky coding style habits) easy to update:My only reservation is that the resulting commit post-style formatting operation will be large and involve most of the source files. Of course, this is reasonable because we are pushing the lines over by spaces everywhere. I thought I would get input before doing this: @ceheitsch Can you please weight in on the decision?