mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
lint: Tell ShellCheck to look for sourced files at relative paths.
This uses the new -P option of ShellCheck 0.7.0. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
02169c48cf
commit
ab211c7acf
@@ -37,7 +37,7 @@ fi
|
|||||||
# Drop any open connections to any old database. Hackishly call using
|
# Drop any open connections to any old database. Hackishly call using
|
||||||
# `source`, because postgres user may not be able to read this directory
|
# `source`, because postgres user may not be able to read this directory
|
||||||
# if unpacked by root.
|
# if unpacked by root.
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=terminate-psql-sessions
|
||||||
source "$(dirname "$0")/terminate-psql-sessions" postgres zulip zulip_base
|
source "$(dirname "$0")/terminate-psql-sessions" postgres zulip zulip_base
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ def run():
|
|||||||
linter_config.external_linter('openapi', ['node', 'tools/check-openapi'], ['yaml'],
|
linter_config.external_linter('openapi', ['node', 'tools/check-openapi'], ['yaml'],
|
||||||
description="Validates our OpenAPI/Swagger API documentation"
|
description="Validates our OpenAPI/Swagger API documentation"
|
||||||
"(zerver/openapi/zulip.yaml) ")
|
"(zerver/openapi/zulip.yaml) ")
|
||||||
linter_config.external_linter('shellcheck', ['shellcheck', '-x'], ['sh'],
|
linter_config.external_linter('shellcheck', ['shellcheck', '-x', '-P', 'SCRIPTDIR'], ['sh'],
|
||||||
description="Standard shell script linter.")
|
description="Standard shell script linter.")
|
||||||
command = ['tools/run-mypy', '--quiet']
|
command = ['tools/run-mypy', '--quiet']
|
||||||
if args.force:
|
if args.force:
|
||||||
|
|||||||
Reference in New Issue
Block a user