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

Establish a consistent code style and auto-formatting #10

Open
jopperm opened this issue Aug 16, 2021 · 3 comments
Open

Establish a consistent code style and auto-formatting #10

jopperm opened this issue Aug 16, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@jopperm
Copy link
Contributor

jopperm commented Aug 16, 2021

I'd like for us to decide on a code style, export the Eclipse's auto-formatter settings and add them to the repo, have that one terrible commit that reformats everything, and then make it mandatory to auto-format new changes.

@jopperm jopperm added the enhancement New feature or request label Aug 16, 2021
@jopperm
Copy link
Contributor Author

jopperm commented Aug 16, 2021

Personally, I like:

for (int i = 0; i < someUpperLimit(); ++i) {
  // spaces for indentation
}

... but will be fine with any style as long I can have a tool apply it.

@jopperm
Copy link
Contributor Author

jopperm commented Sep 12, 2022

Will look into using an .editorconfig instead, if that's supported well by Eclipse's auto-formatter.

@eyck
Copy link
Contributor

eyck commented Sep 12, 2022

Actually there is no XTend formatter outside of Eclipse and Eclipse does not know anything about .editorconfig. AFAIK setting this up requires a XML file to be imported into the setting. The better way would be to use the MINRES Oomph setup which may provide this. I'll have a look into this and provide a proposal...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants