From 3ad2de33daa5a5df7f1e90acc593b6b246dfb450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Fernandes?= Date: Sun, 11 Jul 2021 22:46:34 +0100 Subject: uncrustify: Ignore sp_arith to workaround bug A new bug in uncrustify 0.73 causes a pointer type to be interpreted as an arithmetic operation, thus adding a space. [0] This causes the CI pipeline to fail on style-check job. To workaround this, ignore the "space around arithmetic operator" rule. [0] https://github.com/uncrustify/uncrustify/issues/3233 --- data/uncrustify.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/uncrustify.cfg b/data/uncrustify.cfg index a4777c8f4..5d07f5606 100644 --- a/data/uncrustify.cfg +++ b/data/uncrustify.cfg @@ -39,7 +39,7 @@ nl_end_of_file_min = 1 sp_return_paren = force # "return (1);" vs "return(1);" sp_sizeof_paren = force # "sizeof (int)" vs "sizeof(int)" sp_assign = force -sp_arith = force +sp_arith = ignore # Should be "force", but https://github.com/uncrustify/uncrustify/issues/3233 sp_bool = force sp_compare = force sp_after_comma = force -- cgit v1.2.1