[nautilus/wip/antoniof/switch-case-braces-style-fix] uncrustify: Ignore sp_arith to workaround bug
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/switch-case-braces-style-fix] uncrustify: Ignore sp_arith to workaround bug
- Date: Sun, 11 Jul 2021 22:02:24 +0000 (UTC)
commit 42be64bf9c8b52132cc7fb40bf3831199f6278b5
Author: António Fernandes <antoniof gnome org>
Date: Sun Jul 11 22:46:34 2021 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]