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

Added editorconfig file to repository #32

Merged
merged 2 commits into from
Dec 18, 2020

Conversation

underwoo
Copy link
Member

@underwoo underwoo commented Dec 11, 2020

Description
Adds an .editorconfig file with the initial editor configuration we would like to see in the FMS project. Information at https://editorconfig.org on how to configure specific editors to use the information contained in this file.

fixes #31

Copy link
Contributor

@ngs333 ngs333 left a comment

Choose a reason for hiding this comment

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

I've tested with the proposed .editorconfig with emacs and with VS Code, and with emacs
I've encountered some problems. For example, one can do a format selection of the last function (compress_int_data) in the c file /tools/remap_land/remap_land.c. If the last line (indent_style = 1) in .editorconfig is commented out, emacs indents compress_int_data with two spaces per indent (which I think is the intended result), but if the last line is left intact, then emacs indents the function with one space per indent.

@underwoo
Copy link
Member Author

Looks like a \n got removed. Let me add it in.

A missing newline kept the Makefile configs from applying to only the Makefiles.  This corrects that.
@underwoo
Copy link
Member Author

@ngs333, please test again with the latest update.

@ngs333
Copy link
Contributor

ngs333 commented Dec 17, 2020

@underwoo
Works great. Hope the rest of GFDL follows suite.

@ngs333 ngs333 merged commit 7cf1c15 into NOAA-GFDL:master Dec 18, 2020
@underwoo underwoo deleted the 31-editorconfig branch May 7, 2021 17:03
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.

Add an editorconfig file to the repository
2 participants