diff options
author | António Fernandes <antoniof@gnome.org> | 2021-07-11 22:46:34 +0100 |
---|---|---|
committer | António Fernandes <antoniojpfernandes@gmail.com> | 2021-07-11 22:05:51 +0000 |
commit | 3ad2de33daa5a5df7f1e90acc593b6b246dfb450 (patch) | |
tree | a41e64141861e75ac6136c3230bc3d3e92fd3429 | |
parent | 619970b1e831daaca349c03373702dd63c400713 (diff) | |
download | nautilus-3ad2de33daa5a5df7f1e90acc593b6b246dfb450.tar.gz |
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
-rw-r--r-- | data/uncrustify.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
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 |