Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Classes generated by custom T4 generator look messy

After running the generator output files with code look really disordered. I know I will probably never look into those files but it is nice to see generated code nicely structured while developing a generator.

Any suggestions are welcome.

like image 208
Naz Avatar asked Dec 23 '11 14:12

Naz


2 Answers

never look into those files

as long as the code works, who cares. rest easy friend, move on to more important things :)

but if you REALLY want to do this, I'd suggest adding a code-reformatting process to your continuous build system. see How to force code style formatting as part of the build? for an example

like image 107
kenwarner Avatar answered Oct 02 '22 10:10

kenwarner


Change your t4 code to make the output code neater... or don't look.

like image 27
Paddy Avatar answered Oct 02 '22 11:10

Paddy