Skip to content

Use a consistent style everywhere. #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Nov 1, 2016

@highfive
Copy link

highfive commented Nov 1, 2016

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@emilio
Copy link
Contributor Author

emilio commented Nov 1, 2016

@bors-servo delegate=fitzgen

@emilio
Copy link
Contributor Author

emilio commented Nov 1, 2016

I'm still unsure about the "run it on CI" thing. It's nice but it seems it can be pretty annoying for new contributors. I'd say it's worth trying, but if we see too many people getting stuck with it, we can back it out.

@fitzgen
Copy link
Member

fitzgen commented Nov 1, 2016

AWESOME!!

I was going to bring this up soon, and I actually accidentally rustfmted some files locally because of key chord habits in my editor :P

Taking a look now...

@fitzgen
Copy link
Member

fitzgen commented Nov 1, 2016

I'm still unsure about the "run it on CI" thing. It's nice but it seems it can be pretty annoying for new contributors. I'd say it's worth trying, but if we see too many people getting stuck with it, we can back it out.

The other thing is, if we have different versions of rustfmt installed, they can end up formatting the code differently. I've run into this with gimli, where we decided that it was not worth it to put in CI.

Soft -1 about running in CI.

Ideally, bors or highfive or whoever would automatically run rustfmt after every merge, and if there was any change, then automatically merge a rustfmt commit. Best of both worlds: we don't bounce new contributors and we always end up with a styled master.

@emilio
Copy link
Contributor Author

emilio commented Nov 1, 2016

@fitzgen sounds good, I'll drop the CI commit. Meanwhile we can run it manually I guess.

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome :)

@@ -39,6 +40,8 @@ before_script:
- echo $LIBCLANG_PATH

script:
- export PATH=$PATH:~/.cargo/bin
- cargo fmt -- --write-mode=diff
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Soft -1 if this is going to cause travis CI to fail if there is any difference in the formatting. As mentioned before, we will hit this issue with different rustfmt versions.

@@ -7,6 +7,7 @@ yourself.
* [Code of Conduct](#coc)
* [Filing an Issue](#issue)
* [Building](#building)
* [Automatic Code Formatting](#formatting)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe put this after testing? I feel like learning about testing is more important for newcomers.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, agreed! Done :)

@fitzgen
Copy link
Member

fitzgen commented Nov 1, 2016

@bors-servo r+

@emilio
Copy link
Contributor Author

emilio commented Nov 1, 2016

For some reason bors didn't listen to me initially. Meh.

@bors-servo r=fitzgen

@emilio emilio mentioned this pull request Nov 1, 2016
@emilio
Copy link
Contributor Author

emilio commented Nov 1, 2016

Reopened as #183, given homu was ignoring this one.

@emilio emilio closed this Nov 1, 2016
bors-servo pushed a commit that referenced this pull request Nov 1, 2016
rustfmt the world.

Homu isn't listening to #180 apparently so hopefully it'll know about this one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants