Skip to content

Add Rebracer file with your formats #98

Closed

Description

@clairernovotny

This should probably be added to all of your projects as you have "particular" tastes :)

Activity

  1. bennor commented on Dec 19, 2014

    @bennor
    Contributor

    I've got one of these hanging around that I will add later today. I assume you meant ReSharper and not rebracer?

  2. clairernovotny commented on Dec 19, 2014

    @clairernovotny
    MemberAuthor

    I will never like the java/javascript brace style :P

  3. bennor commented on Dec 19, 2014

    @bennor
    Contributor

    Never heard of rebracer. Will check it out.

  4. clairernovotny commented on Dec 19, 2014

    @clairernovotny
    MemberAuthor

    Yeah, it's a bit more targeted than R# and it's free, so it's more likely to get people to abide by it. Just install the VSIX and go.

  5. anaisbetts commented on Dec 19, 2014

    @anaisbetts
    Member

  6. clairernovotny commented on Dec 19, 2014

    @clairernovotny
    MemberAuthor
  7. bennor commented on Dec 19, 2014

    @bennor
    Contributor

    Cool. Will sort them both out soon. 😸

  8. anaisbetts commented on Dec 19, 2014

    @anaisbetts
    Member

    @bennor Steal them from ReactiveUI

  9. bennor commented on Dec 19, 2014

    @bennor
    Contributor

    👍 easy

  10. bennor commented on Dec 19, 2014

    @bennor
    Contributor

    Okay, so not quite as easy as I'd hoped. There's no Rebracer.xml in RxUI, and the R# settings seem to be a fair bit different to the ones I had created.

    I created mine by messing with R# options and formatting RequestBuilderImplementation.cs until there were no visible changes to the file after formatting, so I'm pretty sure it's good. (It has a few things that are missing from the RxUI one -- like catch blocks being on the same line, etc.)

    I'll create a PR with the files in a few minutes.

  11. clairernovotny commented on Dec 20, 2014

    @clairernovotny
    MemberAuthor

    The R# ones look good, except for missing the Add Braces for an if block if they're not already there.

    The rebracer ones don't seem to work; Edit->Format document gives me different results. Maybe the Rebracer just isn't worth the hassle?

  12. bennor commented on Dec 20, 2014

    @bennor
    Contributor

    The R# one should be forcing braces for multi-line but hoisting single line if statements up to the same line, which was the convention Paul seemed to o be using. I did this all by guesswork and comparison to existing code, so it's entirely possible there are some gaps.

    I wonder why the rebracer file doesn't work? The R# one is more comprehensive but both of them still have some small differences. There are some things in the existing code that aren't consistent with each other (like spaces after an if keyword), so for those I just tried to match whatever was more common.

  13. locked and limited conversation to collaborators on Jun 25, 2019
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions