Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
install-semgrep: Upgrade semgrep to 0.14.0.
Anders Kaseorgf364414cb9f1
diff --git a/tools/lint b/tools/lintindex 461032a90fc..f80fb754c1a 100755--- a/tools/lint+++ b/tools/lint@@ -1,6 +1,7 @@#!/usr/bin/env python3import argparseimport os+import reimport sys# check for the venv@@ -106,7 +107,9 @@ def run() -> None:linter_config.external_linter('semgrep-py', [*semgrep_command, "--lang=python"], ['py'],fix_arg='--autofix',description="Syntactic Grep (semgrep) Code Search Tool "- "(config: ./tools/semgrep.yml)")+ "(config: ./tools/semgrep.yml)",+ # https://github.com/returntocorp/semgrep/issues/1228+ suppress_line=lambda line: bool(re.match(r"running \d+ rules\.\.\.$", line)))linter_config.external_linter('thirdparty', ['tools/check-thirdparty'],description="Check docs/THIRDPARTY copyright file syntax")diff --git a/tools/semgrep.yml b/tools/semgrep.ymlindex b6f7c984b87..3384e4873cb 100644--- a/tools/semgrep.yml+++ b/tools/semgrep.yml@@ -116,7 +116,6 @@ rules:languages: [python]pattern-either:- pattern: '"..." % ...'- - pattern: '("...") % ...'- pattern: django.utils.translation.ugettext(...) % ...severity: ERRORmessage: "Prefer f-strings or .format for string formatting"diff --git a/tools/setup/install-semgrep b/tools/setup/install-semgrepindex 739558cfc06..55e0ca10b6b 100755--- a/tools/setup/install-semgrep+++ b/tools/setup/install-semgrep@@ -1,9 +1,9 @@#!/usr/bin/env bashset -e-version=0.10.1+version=0.14.0tarball=semgrep-v$version-ubuntu-16.04.tgz-sha256=7d07d223e88d52a2e8886e748726e1c8488d8d81ced34b80b128c362d9b57a0a+sha256=8b9437af0540ed9664904f9603d9d6ad011dad46433cba74e524c7753c7732c9tarball_url=https://github.com/returntocorp/semgrep/releases/download/v$version/$tarballcheck_version () {diff --git a/version.py b/version.pyindex 43a3845bfaa..bc735ba09a9 100644--- a/version.py+++ b/version.py@@ -44,4 +44,4 @@ API_FEATURE_LEVEL = 24# historical commits sharing the same major version, in which case a# minor version bump suffices.-PROVISION_VERSION = '89.2'+PROVISION_VERSION = '89.3'