ricardoboss / Prolangle

A game about programming languages.
https://prolangle.ricardoboss.de
MIT License
2 stars 1 forks source link

Code style adjustments #37

Closed ricardoboss closed 6 months ago

ricardoboss commented 6 months ago

I'd like to propose some adjustments to the .editorconfig. They are in no-way final and are meant as a discussion-starter.

This PR is also open to new suggestions for the code style.

Summary of changes:

chucker commented 6 months ago

I don't have strong opinions here, but:

In addition, I prefer the first style here, not the second:

    [Parameter]
    public required SyntaxStyle SyntaxStyle { get; set; }

    [Parameter] public required SyntaxStyle SyntaxStyle { get; set; }
ricardoboss commented 6 months ago

[...] In addition, I prefer the first style here, not the second:

    [Parameter]
    public required SyntaxStyle SyntaxStyle { get; set; }

    [Parameter] public required SyntaxStyle SyntaxStyle { get; set; }

There exists a resharper editorconfig rule for this. I don't know it of the top of my head but I will look for it.