8000 tools/uncrustify: Force 1 newline at end of file. · micropython/micropython@8637178 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8637178

Browse files
dlechdpgeorge
authored andcommitted
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>
1 parent 30691ed commit 8637178

File tree

8 files changed

+2
-9
lines changed

8 files changed

+2
-9
lines changed

ports/esp32/modesp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,3 @@ const mp_obj_module_t esp_module = {
143143
.base = { &mp_type_module },
144144
.globals = (mp_obj_dict_t *)&esp_module_globals,
145145
};
146-

ports/nrf/mphalport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,3 @@ mp_uint_t mp_hal_ticks_ms(void);
7878
#define mp_hal_ticks_cpu() (0)
7979

8080
#endif
81-

ports/rp2/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,4 +227,3 @@ const char rp2_help_text[] =
227227
"For further help on a specific object, type help(obj)\n"
228228
"For a list of available modules, type help('modules')\n"
229229
;
230-

ports/stm32/machine_i2s.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,4 +1123,3 @@ const mp_obj_type_t machine_i2s_type = {
11231123
};
11241124

11251125
#endif // MICROPY_HW_ENABLE_I2S
1126-

ports/stm32/modmachine.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,4 +468,3 @@ const mp_obj_module_t machine_module = {
468468
.base = { &mp_type_module },
469469
.globals = (mp_obj_dict_t *)&machine_module_globals,
470470
};
471-

ports/stm32/pin_defs_stm32.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ uint32_t pin_get_pull(const pin_obj_t *pin) {
2828
uint32_t pin_get_af(const pin_obj_t *pin) {
2929
return (pin->gpio->AFR[pin->pin >> 3] >> ((pin->pin & 7) * 4)) & 0xf;
3030
}
31-

ports/stm32/pin_defs_stm32.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,3 @@ enum {
136136
};
137137

138138
typedef GPIO_TypeDef pin_gpio_t;
139-

tools/uncrustify.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,11 +1409,11 @@ nl_start_of_file = ignore # ignore/add/rem 8005 ove/force
14091409
nl_start_of_file_min = 0 # unsigned number
14101410

14111411
# Add or remove newline at the end of the file.
1412-
nl_end_of_file = ignore # ignore/add/remove/force
1412+
nl_end_of_file = force # ignore/add/remove/force
14131413

14141414
# The minimum number of newlines at the end of the file (only used if
14151415
# nl_end_of_file is 'add' or 'force').
1416-
nl_end_of_file_min = 0 # unsigned number
1416+
nl_end_of_file_min = 1 # unsigned number
14171417

14181418
# Add or remove newline between '=' and '{'.
14191419
nl_assign_brace = ignore # ignore/add/remove/force

0 commit comments

Comments
 (0)
0