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

update to include documentation on running uncrustify #796

Conversation

dgergel
Copy link
Contributor

@dgergel dgergel commented May 22, 2018

@dgergel dgergel self-assigned this May 22, 2018
@dgergel dgergel requested review from jhamman and tbohn May 22, 2018 05:27
@@ -128,6 +128,9 @@ To register the deletion of a file:

This will bring up a commit log in your default editor. The list of files whose changes will be committed (i.e. were registered via "git add" etc) is shown in the header at the top of the file. If you disagree with this list, exit the editor and do "git add" etc as necessary to correct the list, and then try "git commit" again. If satisfied with the list of changed files, add a description of the set of changes (including a brief description of the problem that motivated the changes). Save and exit.

### 3. Correcting code syntax issues prior to creating a PR
After completing your code commits, you also need to check that your code is compliant with C conventions for indentation and spacing. Please make sure you have `uncrustify` installed, and you will need either version `0.64` or later. Once you have installed `uncrustify`, you should navigate to the `~/tools/code_format` directory in the VIC repo and run `uncrustify`, which you can do by running the script in that directory, `./run_uncrustify.bash`. A simple `git diff --name-only` will list all files that `uncrustify` has updated the syntax for. If any files come up that you have edited, you should commit those syntax edits.

Copy link
Member

Choose a reason for hiding this comment

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

I've made a few changes to the paragraph...

After completing your code changes, you also need to check that your code is compliant with VIC's style conventions for indentation and spacing. Please make sure you have uncrustify installed (version 0.64 or later). Once you have installed uncrustify, you should navigate to the ...VIC/tools/code_format directory in the VIC repo and run uncrustify, which you can do by running the script in that directory, ./run_uncrustify.bash. A simple git diff --name-only will list all files that uncrustify has updated the syntax for. If any files come up that you have edited, you should commit those syntax edits.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @jhamman, just updated with your edits

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