Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
lint: Add .bash extension for tools/lib/git-tools.bash.
Anders Kaseorgd428c0e0ddf0
diff --git a/tools/lib/git-tools.bash b/tools/lib/git-tools.bashindex a02469bff57..31976199508 100644--- a/tools/lib/git-tools.bash+++ b/tools/lib/git-tools.bash@@ -5,7 +5,7 @@# See git.git commit 92c62a3f4 (from 2010!); as of 2020 with Git 2.26,# this function has only needed one edit since then, adding localization# with gettext, which we can omit.-require_clean_work_tree () {+require_clean_work_tree() {local action="$1"git rev-parse --verify HEAD >/dev/null || exit 1diff --git a/tools/lint b/tools/lintindex b38b58319a5..427da71a74d 100755--- a/tools/lint+++ b/tools/lint@@ -45,8 +45,28 @@ def run() -> None:by_lang = linter_config.list_files(groups={- "backend": ["py", "sh", "pp", "json", "md", "txt", "text", "yaml", "rst", "yml"],- "frontend": ["js", "ts", "flow", "css", "hbs", "html", "lock"],+ "backend": [+ "bash",+ "json",+ "md",+ "pp",+ "py",+ "rst",+ "sh",+ "text",+ "txt",+ "yaml",+ "yml",+ ],+ "frontend": [+ "css",+ "flow",+ "hbs",+ "html",+ "js",+ "lock",+ "ts",+ ],},exclude=EXCLUDED_FILES,)@@ -95,13 +115,13 @@ def run() -> None:linter_config.external_linter("shellcheck",["shellcheck", "-x", "-P", "SCRIPTDIR"],- ["sh"],+ ["bash", "sh"],description="Standard shell script linter",)linter_config.external_linter("shfmt",["shfmt"],- ["sh"],+ ["bash", "sh"],check_arg="-d",fix_arg="-w",description="Formats shell scripts",