Zanduino / BME680

Arduino Library to access the Bosch BME680 - temperature, pressure, humidity and gas sensor
GNU General Public License v3.0
41 stars 10 forks source link

Implement "clang-format" to format c++ using a standard style #25

Closed SV-Zanshin closed 4 years ago

SV-Zanshin commented 4 years ago

Describe what the feature request is and if it solves an issue or adds functionality Currently the formatting of the library and example programs is non-standard. Using a standardized tool such as "clang-format" allows for a more legible source code and makes applying pull requests from multiple contributors much easier

Describe the solution you'd like Add "clang-format" to the GitHub actions to automatically format on commit

Describe alternatives you've considered none

Additional context While I like working on a wide screen with the current 120-column width, it is non-standard.

SV-Zanshin commented 4 years ago

Started converting the existing source code. This takes some time, because of the previous formatting. Changed "SDLoggerSPIDemo.ino" and the library header file "Zanshin_BME680.h" files in the development branch so far

SV-Zanshin commented 4 years ago

Changed the library and example programs to adhere to standard Google formatting using clang-format with a width of 100