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:
brendon
2020-03-18 16:32:26 -07:00
committed by Tim Abbott
parent f6503a4061
commit f65e6d0d94
6 changed files with 46 additions and 4 deletions

View File

@@ -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])