In previous versions of shellcheck, SC2317 was emitted for every line of
a unused function and we're ignoring the SC2317 completely:
6e61729e66/Makefile (L6)

We were ignoring this error due to `version_compare` being reported as a
false positive.

After
4f81dbe839
this was fixed and now it produces one `SC2329` for the whole function
instead of multiple SC2137.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski 2024-05-09 13:41:44 +02:00
Родитель dd09dd20ef
Коммит 21b3f00cd9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B85EFCFE26DEF92A
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -3,7 +3,7 @@ VERSION?=
CHANNEL?=
VOLUME_MOUNTS=-v "$(CURDIR)":/v
SHELLCHECK_EXCLUSIONS=$(addprefix -e, SC1091 SC1117 SC2317)
SHELLCHECK_EXCLUSIONS=$(addprefix -e, SC1091 SC1117 SC2317 SC2329)
SHELLCHECK=docker run --rm $(VOLUME_MOUNTS) -w /v koalaman/shellcheck:stable $(SHELLCHECK_EXCLUSIONS)
ENVSUBST_VARS=LOAD_SCRIPT_COMMIT_SHA