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

Hoist clang-format package and use a single .clang-format config in root #644

Merged
merged 2 commits into from
Aug 15, 2018

Conversation

usergenic
Copy link
Contributor

There's no good reason I can think of to have these all formatting rules be scattered across the monorepo's packages, so this PR standardizes all of them.

I hoisted clang-format package as well as .clang-format file to repo root, then I added format scripts to all packages that didn't have them and normalized those too. Then I ran format script for all packages, ran build, and committed what you see here.

@usergenic
Copy link
Contributor Author

note: I did this because I was about to add yet-another-package with yet-another-clang-format config and dependency and that felt sad.

Also, this configuration makes it easier to configure editor to use the right clang-format settings because it can pull them from the workspace root instead of figuring it out per-package.

@usergenic usergenic merged commit 281fc19 into master Aug 15, 2018
@usergenic usergenic deleted the hoist-clang-format branch August 15, 2018 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants