shellcheck icon indicating copy to clipboard operation
shellcheck copied to clipboard

shellcheckrc exclude range doesnt include last item in range

Open le91688 opened this issue 2 years ago • 0 comments

for example:

# ~/.shellcheckrc
disable=SC3001-SC3060 # Disable POSIX compliance checks

in the above disable rule, I would assume it would exclude 3001 through and including 3060, but in practice it does not exclude 3060. In order to ignore the range, i have to specify SC3001-SC3061 which imo is a little bit counter-intuitive.

If this was intended behavior, its worth spelling it out in the documentation. Otherwise modify the range check code to include the last number of the specified range.

le91688 avatar Sep 20 '22 11:09 le91688