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

Coding style #8

Open
llpamies opened this issue Nov 23, 2021 · 0 comments
Open

Coding style #8

llpamies opened this issue Nov 23, 2021 · 0 comments

Comments

@llpamies
Copy link

I am looking at the code, and it doesn't seem to follow any particular style guide. For example, indentations are sometimes 2 spaces, and other time 4 spaces. Also, comment tabulation is not consistent across the .cpp/.h file.

One common solution is to use an auto formatter such as the ClangFormatter, and either use one of the predefined styles, or customize your own. Comments would need more manual work to make them consistent across the file.

Is that something that openenergymonitor is interested in? I could give it a try and send a PR...

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

No branches or pull requests

1 participant