diff options
| author | David Lechner <david@pybricks.com> | 2021-08-28 10:58:38 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-08-31 13:14:45 +1000 |
| commit | 86371781e9623e9f1187625dfcad64c8f2fa08c0 (patch) | |
| tree | fc16dddd416c62cecc16ffe0deb1c550e0671b39 | |
| parent | 30691ed2a1f59fc74f6e051c70eaa7c280889381 (diff) | |
tools/uncrustify: Force 1 newline at end of file.
To keep things neat and tidy, we ensure that each file has 1 and only 1
newline at the end of each file.
Signed-off-by: David Lechner <david@pybricks.com>
| -rw-r--r-- | ports/esp32/modesp.c | 1 | ||||
| -rw-r--r-- | ports/nrf/mphalport.h | 1 | ||||
| -rw-r--r-- | ports/rp2/main.c | 1 | ||||
| -rw-r--r-- | ports/stm32/machine_i2s.c | 1 | ||||
| -rw-r--r-- | ports/stm32/modmachine.c | 1 | ||||
| -rw-r--r-- | ports/stm32/pin_defs_stm32.c | 1 | ||||
| -rw-r--r-- | ports/stm32/pin_defs_stm32.h | 1 | ||||
| -rw-r--r-- | tools/uncrustify.cfg | 4 |
8 files changed, 2 insertions, 9 deletions
diff --git a/ports/esp32/modesp.c b/ports/esp32/modesp.c index 8a7f02575..8c94e0cf4 100644 --- a/ports/esp32/modesp.c +++ b/ports/esp32/modesp.c @@ -143,4 +143,3 @@ const mp_obj_module_t esp_module = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t *)&esp_module_globals, }; - diff --git a/ports/nrf/mphalport.h b/ports/nrf/mphalport.h index 5900559b5..1ba4b6e70 100644 --- a/ports/nrf/mphalport.h +++ b/ports/nrf/mphalport.h @@ -78,4 +78,3 @@ mp_uint_t mp_hal_ticks_ms(void); #define mp_hal_ticks_cpu() (0) #endif - diff --git a/ports/rp2/main.c b/ports/rp2/main.c index e615f6911..d0b89c8d6 100644 --- a/ports/rp2/main.c +++ b/ports/rp2/main.c @@ -227,4 +227,3 @@ const char rp2_help_text[] = "For further help on a specific object, type help(obj)\n" "For a list of available modules, type help('modules')\n" ; - diff --git a/ports/stm32/machine_i2s.c b/ports/stm32/machine_i2s.c index d663767bf..32167cf4e 100644 --- a/ports/stm32/machine_i2s.c +++ b/ports/stm32/machine_i2s.c @@ -1123,4 +1123,3 @@ const mp_obj_type_t machine_i2s_type = { }; #endif // MICROPY_HW_ENABLE_I2S - diff --git a/ports/stm32/modmachine.c b/ports/stm32/modmachine.c index 1df6cbc47..92b80b365 100644 --- a/ports/stm32/modmachine.c +++ b/ports/stm32/modmachine.c @@ -468,4 +468,3 @@ const mp_obj_module_t machine_module = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t *)&machine_module_globals, }; - diff --git a/ports/stm32/pin_defs_stm32.c b/ports/stm32/pin_defs_stm32.c index a3f9d039d..070005d21 100644 --- a/ports/stm32/pin_defs_stm32.c +++ b/ports/stm32/pin_defs_stm32.c @@ -28,4 +28,3 @@ uint32_t pin_get_pull(const pin_obj_t *pin) { uint32_t pin_get_af(const pin_obj_t *pin) { return (pin->gpio->AFR[pin->pin >> 3] >> ((pin->pin & 7) * 4)) & 0xf; } - diff --git a/ports/stm32/pin_defs_stm32.h b/ports/stm32/pin_defs_stm32.h index d90ef1bb6..20faab4e0 100644 --- a/ports/stm32/pin_defs_stm32.h +++ b/ports/stm32/pin_defs_stm32.h @@ -136,4 +136,3 @@ enum { }; typedef GPIO_TypeDef pin_gpio_t; - diff --git a/tools/uncrustify.cfg b/tools/uncrustify.cfg index 80542b903..88127112e 100644 --- a/tools/uncrustify.cfg +++ b/tools/uncrustify.cfg @@ -1409,11 +1409,11 @@ nl_start_of_file = ignore # ignore/add/remove/force nl_start_of_file_min = 0 # unsigned number # Add or remove newline at the end of the file. -nl_end_of_file = ignore # ignore/add/remove/force +nl_end_of_file = force # ignore/add/remove/force # The minimum number of newlines at the end of the file (only used if # nl_end_of_file is 'add' or 'force'). -nl_end_of_file_min = 0 # unsigned number +nl_end_of_file_min = 1 # unsigned number # Add or remove newline between '=' and '{'. nl_assign_brace = ignore # ignore/add/remove/force |
