EmonLibCM
EmonLibCM copied to clipboard
Coding style
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...