Re: [RFC] checkpatch: Introduce a check for the nesting of brackets
From: Joe Perches
Date: Tue Jun 23 2026 - 15:23:20 EST
On Tue, 2026-06-23 at 21:09 +0200, Manuel Ebner wrote:
> I have a local script that checks files for the right nesting of brackets.
> With the help of the script I managed to do a couple patches [1]. Unfortunately
> there are (still) a lot of false positives [2]. I do not filter false positives
> (yet).
>
> To simplify testing the new check is enabled and warns(WARN()). The final
> version would be disabled by default and would trigger CHK().
>
> Would this addition, if cleaned up, get into checkpatch.pl?
probably not as it's not suitable for patches.