Jalopy port for .NET? -- A possible solution!

As a lot of people know, I have been trying to figure out a way to format / beautify my C# code ever since making the move from Java to .NET.  I used Jalopy in my previous life and I really liked it.  As Don points out it is a great resource for a company to be able to settle on coding standards and then have developers be able to run their code through a utility that cleans it up according to the company's predefined standards. 

What I really liked about Jalopy was the fact that it was open source and that you could give it an xml file of settings and it would format the code accordingly.  I had one format for work, one for home, one for projects that required certain formatting.  This way, I can code however I want to and worry about formatting later.

Well, I was looking through the source code for SharpDevelop (a great free C# IDE for those interested) and I found that they have ported Berkeley Yacc and jay over to C# for their SharpRefactory assembly.  The code is licensed under GPL so I expect that within a few days I will have a command line c# parser for code formatting!  I haven't decided whether to have it try to read in a Jalopy file or just create my own xml file to use.  Either way I will try to give something back to the community soon.

 

[.NET Brain Droppings]

Ok, in continuing with the coversion of Java tools to .NET (NAnt, NUnit, NVelocity, ect...), has anyone out there seen a port of the Jalopy source code formatter that supports the primary (VB, C#) .NET languages?

Brenton and I were talking about Jalopy the other day, and it sounds like a kick ass tool.  I'd like to hook it into the commit process, so that all code commited to the repository conforms to our coding standards...

If anyone's heard of anything, drop me a line...

 


Recent Posts

Tag Cloud

2 Comments

  • I really like these kind of tools, especially if they pre-build all javadoc c#-comment type of comment.



    Also there needs to be a way to disable the formatting for a certail block (which has been optimised for readability (these blcoks should then be indented as a whole).



    Jesse

  • Have you gotten anywhere with this -- I am looking and am considering doing something on my own if I don't find something else soon.



    Cort

Comments have been disabled for this content.