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

Updated to use Google style for formatting #307

Merged
merged 2 commits into from
Jul 22, 2020

Conversation

krlberry
Copy link
Contributor

This PR contains the result of running just clang-format style=Google on the usgscsm code. This standardizes spacing, bracket-placement, header-ordering, max line length, etc, but doesn't contain changes resulting from static analysis and cpplint does still find some additional changes that need to be made by hand. (I'm not sure if these additional changes should be in this PR or a subsequent one. I was leaning toward a subsequent one just so the automated changes and hand-changes could be in separate PRs. The changes left to be made are a much smaller list than the changes in this PR.)

I tested a few formats, and picked Google style because I somewhat arbitrarily liked the way the results looked the best. I have results locally for the following formats if anyone would like to see some alternatives: LLVM, GNU, Mozilla, Chromium, WebKit. I picked these to test because clang-format could automatically fix code to follow these standards. I'm also open to other "auto-fix formatting" tools if anyone has any other suggestions!

@krlberry krlberry requested a review from jessemapel July 22, 2020 22:12
Copy link
Contributor

@jessemapel jessemapel left a comment

Choose a reason for hiding this comment

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

This looks good. A follow up PR should also specify on the README or contributing that we use the google style guide.

@krlberry krlberry merged commit b4313de into DOI-USGS:dev Jul 22, 2020
@krlberry
Copy link
Contributor Author

Completes part of #304

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.

2 participants