I have two .perltidyrc files.
One contains just this line:
-pbp
The other contains various heretical statements such as
-i=3 # Indent level is 3 cols
-et=3 # Use tabs for indents because I'm such a sociopath
-ci=3 # Continuation indent is 3 cols
-icb # Make closing braces align with the body of their block
As I'm editing code, I'll run perltidy over it with my preference for formatting. Before checking code back in, I'll run perltidy with the Perl Best Practices formatting, run ./Build test and commit.
I, too, draw a distinction between "indenting" and "alignment". I, too, program in languages other than Perl (such as Ruby, Python and PHP).
I also edit using a proportional font (DejaVu Sans is my current favourite), which renders any attempts at "alignment" futile. I cannot stand the practice of sticking in extra spaces to make the '=' symbols line up.
The perltidy tool lets me slip in under the radar of contemporary society.
|