Strip tabs and trailing white spaces, and fix end of files (#748)
* format: Strip trailing whitespaces
We want to get rid of trailing whitespaces completly as they make just git
noice. Much better to start using automated tools to get rid of them once and
not getting them back again. This way git history will be cleaner and review
easier.
Commit was generated with:
pre-commit run --all-files trailing-whitespace
* format: Files should have exactly one new line end of them
It is good practice that every file has one new line. It is not now days so
mandatory but it also is not nice if file has lot of newlines end of it. We will
use pre-commit which takes automatically care about this so let's fix all.
Commit was generated with:
pre-commit run --all-files end-of-file-fixer
* format: Convert tabs to spaces
Project mostly use spaces over tabs. When mixing tabs and spaces this usually
makes formatting issues and also when changing those in commits it will make lot
of git noise. We will force spaces most of the time and use pre-commit to fix.
Commit was generated with:
pre-commit run --all-files remove-tabs
---------
Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
This commit is contained in:
+7
-7
@@ -306,7 +306,7 @@ extern "C" {
|
||||
int max_apdu_len,
|
||||
BACNET_APPLICATION_DATA_VALUE * value,
|
||||
BACNET_PROPERTY_ID prop);
|
||||
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
int bacapp_decode_application_tag_value(
|
||||
uint8_t *apdu,
|
||||
@@ -336,7 +336,7 @@ extern "C" {
|
||||
uint8_t * apdu,
|
||||
unsigned max_apdu_len,
|
||||
BACNET_PROPERTY_ID property);
|
||||
|
||||
|
||||
BACNET_STACK_DEPRECATED("Use bacnet_application_data_length() instead")
|
||||
BACNET_STACK_EXPORT
|
||||
int bacapp_decode_data_len(
|
||||
@@ -359,14 +359,14 @@ extern "C" {
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
int bacapp_snprintf(
|
||||
char *buffer,
|
||||
size_t count,
|
||||
char *buffer,
|
||||
size_t count,
|
||||
const char *format, ...);
|
||||
BACNET_STACK_EXPORT
|
||||
int bacapp_snprintf_shift(
|
||||
int len,
|
||||
char **buf,
|
||||
size_t *buf_size);
|
||||
int len,
|
||||
char **buf,
|
||||
size_t *buf_size);
|
||||
BACNET_STACK_EXPORT
|
||||
int bacapp_snprintf_value(
|
||||
char *str,
|
||||
|
||||
Reference in New Issue
Block a user