mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
sgrep: Install syntactic code search tool as an external linter.
Add sgrep (sgrep.dev) to tooling and include simple rule as proof of concept. Included rule detects use of old django render function. Also added a rule that looks for if-else statements where both code paths are identical.
This commit is contained in:
@@ -385,6 +385,9 @@ def main(options):
|
||||
# Install shellcheck.
|
||||
run_as_root(["tools/setup/install-shellcheck"])
|
||||
|
||||
# Install sgrep.
|
||||
run_as_root(["tools/setup/install-sgrep"])
|
||||
|
||||
setup_venvs.main()
|
||||
|
||||
run_as_root(["cp", REPO_STOPWORDS_PATH, TSEARCH_STOPWORDS_PATH])
|
||||
|
||||
Reference in New Issue
Block a user