Skip to content

Update .editorconfig #4092

Closed
Closed

Description

@CodeTherapist

Update the .editorconfig with additional rules.

Advantages

  • keeps the code format as defined - regardless who is contributing
  • reduces PR review complexity (code formatting changes are gone)
  • works for common IDE's
  • Define a standard
  • Extend the existing file
  • Reformat solution

Activity

  1. added
    Area: Our Own Build
    on Jan 23, 2019
  2. rainersigwald commented on Jan 23, 2019

    @rainersigwald
    Member

    We have one (untouched in 4 years), but it'd be quite reasonable to bring it up to date using the steps here.

  3. changed the title [-]Add .editorconfig to the MSBuild repo[/-] [+]Update .editorconfig[/+] on Jan 23, 2019
  4. CodeTherapist commented on Jan 31, 2019

    @CodeTherapist
    ContributorAuthor
  5. rainersigwald commented on Feb 14, 2019

    @rainersigwald
    Member

    Yeah, that sounds good to me. We may want to eventually standardize more with what corefx or roslyn are doing, but that can be an incremental move, if necessary.

    One wrinkle I can think of: this repo has a few bits of code forked from other places. For ease of updating, those shouldn't be formatted to our conventions, but left as they were--otherwise the diffs resulting from taking a new upstream are confusing and awful. We should drop empty .editorconfig files in those directories.

  6. Pilchie commented on Feb 14, 2019

    @Pilchie
    Member

    We should drop empty .editorconfig files in those directories.

    Editorconfig automatically chains, so instead, drop a .editorconfig with root=true.

  7. rainersigwald commented on Feb 19, 2019

    @rainersigwald
    Member

    @livarcocc Should we think about having a standard for all of our repos and applying that here? If we don't want to push for that, I think the generate-one-from-current-usage approach sounds nice.

  8. Pilchie commented on Feb 19, 2019

    @Pilchie
    Member
  9. rainersigwald commented on Feb 19, 2019

    @rainersigwald
    Member

    Yeah, and we shouldn't be too far off from that--at the dawn of time we used codeformatter on this repo. Just haven't been keeping up with it recently.

  10. livarcocc commented on Feb 21, 2019

    @livarcocc
    Contributor

    @rainersigwald I have been thinking about having one that's common for our whole team for a while. Feel free to drive that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Our Own Buildtriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions