January 24 Re: Automating formatting for official D repos | ||||
---|---|---|---|---|
| ||||
Posted in reply to Richard (Rikki) Andrew Cattermole | On Monday, 22 January 2024 at 16:24:48 UTC, Richard (Rikki) Andrew Cattermole wrote:
> [...]
> With an automatic formatting tool, we can simply fix the code and move on with our lives. No nitpicking, no asking how do I fix this error, just ready to merge code!
What if a contributor thinks their whole code shall be exempt from reformatting by putting
// dfmt off
in the very first line of the translation unit?
|
January 25 Re: Automating formatting for official D repos | ||||
---|---|---|---|---|
| ||||
Posted in reply to kdevel | On 25/01/2024 10:36 AM, kdevel wrote:
> On Monday, 22 January 2024 at 16:24:48 UTC, Richard (Rikki) Andrew Cattermole wrote:
>> [...]
>> With an automatic formatting tool, we can simply fix the code and move on with our lives. No nitpicking, no asking how do I fix this error, just ready to merge code!
>
> What if a contributor thinks their whole code shall be exempt from reformatting by putting
>
> // dfmt off
>
> in the very first line of the translation unit?
We do the same thing we do today if someone disables style checks without a very good reason.
Push back and get them to turn it back on.
|
Copyright © 1999-2021 by the D Language Foundation