Thread overview
dfmt 0.3.0
Apr 20, 2015
Brian Schott
Apr 20, 2015
Idan Arye
Apr 20, 2015
Brian Schott
Apr 24, 2015
Brian Schott
April 20, 2015
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"
April 20, 2015
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-specific-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.
April 20, 2015
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.
April 24, 2015
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