Re: [PATCH v2] checkpatch: add command-line option for TAB size
From: Antonio Borneo
Date: Wed May 08 2019 - 18:05:03 EST
On Wed, May 8, 2019 at 11:14 PM Elliott, Robert (Servers)
<elliott@xxxxxxx> wrote:
...
> Checking for 0 before using the value in division and modulo
> operations would be prudent.
True!
>From command line, $tabsize is parsed as integer so I should sort out
any non-positive value.
Will add a check after GetOptions(...)
die "Invalid TAB size: $tabsize\n" if ($tabsize <= 0);