www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - dfmt 0.3.0

reply "Brian Schott" <briancschott gmail.com> writes:
https://github.com/Hackerpilot/dfmt
https://github.com/Hackerpilot/dfmt/releases/tag/v0.3.0

dfmt is a D source code formatter. Version 0.3.0 fixes several 
bugs and introduces the ability to place configuration options in 
your projects' .editorconfig files.

Random stats:
9000 possible bike shed colours
2555 lines (according to wc) 1477 lines of code (according to D-Scanner) 98 regression tests 11 issues closed in this release 2 ways to spell "color"
Apr 20 2015
next sibling parent reply "Idan Arye" <GenericNPC gmail.com> writes:
On Monday, 20 April 2015 at 17:40:48 UTC, Brian Schott wrote:
 https://github.com/Hackerpilot/dfmt
 https://github.com/Hackerpilot/dfmt/releases/tag/v0.3.0

 dfmt is a D source code formatter. Version 0.3.0 fixes several 
 bugs and introduces the ability to place configuration options 
 in your projects' .editorconfig files.

 Random stats:
9000 possible bike shed colours
2555 lines (according to wc) 1477 lines of code (according to D-Scanner) 98 regression tests 11 issues closed in this release 2 ways to spell "color"
Looks nice. BTW, it looks like the editorconfig format has something called "Domain-Specific Properties"(https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#ideas-for-domain- pecific-properties) - configurations that only make sense for a limited number of languages or file formats. Some of dfmt-specific properties can fit there - for example dfmt_brace_style can be indent_brace_style. The other dfmt-specific properties can not be mapped to that list, but most of them are not really D-specific, so you can make PRs for properties you want to reserve the name.
Apr 20 2015
parent "Brian Schott" <briancschott gmail.com> writes:
On Monday, 20 April 2015 at 20:59:43 UTC, Idan Arye wrote:
 Looks nice. BTW, it looks like the editorconfig format has 
 something called "Domain-Specific Properties"
I didn't use those because they're not standardized. Anything prefixed with dfmt_ is a domain-specific property. I'm also avoiding those because it doesn't say what to do when you specify "curly_bracket_next_line = true" and "indent_brace_style = K&R" at the same time.
Apr 20 2015
prev sibling parent "Brian Schott" <briancschott gmail.com> writes:
0.3.1 is released. It fixes an issue with "!in" formatting and an 
issue with command-line option handling.

https://github.com/Hackerpilot/dfmt/releases/tag/v0.3.1
Apr 23 2015