Adds make lint and make lint-fix
This commit is contained in:
parent
9057d67c0c
commit
e54449bf84
3 changed files with 11 additions and 3 deletions
|
|
@ -311,4 +311,12 @@ sdk_config:
|
|||
|
||||
.PHONY: flash_loop
|
||||
flash_loop:
|
||||
while [ 1 ]; do make flash && break; done
|
||||
while [ 1 ]; do make flash && break; done
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
find src -iname *.h -o -iname *.c | xargs clang-format -n -Werror
|
||||
|
||||
.PHONY: fix
|
||||
lint-fix:
|
||||
find src -iname *.h -o -iname *.c | xargs clang-format -i
|
||||
1
code/b-parasite/src/prst/.clang-format
Normal file
1
code/b-parasite/src/prst/.clang-format
Normal file
|
|
@ -0,0 +1 @@
|
|||
BasedOnStyle: Google
|
||||
|
|
@ -13,7 +13,6 @@ void prst_adv_stop();
|
|||
|
||||
void prst_ble_update_adv_data(uint16_t batt_millivolts,
|
||||
uint16_t temp_millicelcius, uint16_t humidity,
|
||||
uint16_t soil_moisture,
|
||||
uint8_t run_counter);
|
||||
uint16_t soil_moisture, uint8_t run_counter);
|
||||
|
||||
#endif // _PRST_BLE_H_
|
||||
Loading…
Add table
Reference in a new issue