Skip to content
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

Add tools/format.sh which formats all files automatically. #14

Merged
merged 4 commits into from
Dec 19, 2019

Conversation

g-easy
Copy link
Contributor

@g-easy g-easy commented Dec 17, 2019

Uses clang-format, cmake-format, and buildifier.

Uses clang-format, cmake-format, and buildifier.
@g-easy
Copy link
Contributor Author

g-easy commented Dec 17, 2019

Ryan, can you try this script on your PR #13?

Especially cmake-format and buildifier. :)

@g-easy
Copy link
Contributor Author

g-easy commented Dec 17, 2019

@maxgolov what do you think? This kind of duplicates git-cl.sh - how should we resolve this?

In particular, I'd like something more automated than git cl format specify_every_changed_file.cc

tools/format.sh Outdated Show resolved Hide resolved
@rnburn
Copy link
Contributor

rnburn commented Dec 17, 2019

I got this error when I ran on os x

$ ./tools/format.sh
sed: 1: "./tools/setup-buildtool ...": invalid command code .

@g-easy
Copy link
Contributor Author

g-easy commented Dec 17, 2019

Looks like BSD vs GNU sed.

@g-easy
Copy link
Contributor Author

g-easy commented Dec 17, 2019

Please try again. :)

@rnburn
Copy link
Contributor

rnburn commented Dec 17, 2019

Worked!

@g-easy
Copy link
Contributor Author

g-easy commented Dec 18, 2019

Thank you for your patience, and testing this on OSX which I didn't have access to.

I think I need one more approval to merge.

@g-easy g-easy merged commit d3da4dc into open-telemetry:master Dec 19, 2019
@g-easy g-easy deleted the format branch December 19, 2019 04:45
0x4b pushed a commit to 0x4b/opentelemetry-cpp that referenced this pull request Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants