From 650df696dcf7640e89fbf86989bab9c361273bfb Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 4 Feb 2023 16:08:22 +0100 Subject: [PATCH] Add semgrep support --- Makefile | 3 +++ dev-requirements.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 9128fb07..8244da7f 100644 --- a/Makefile +++ b/Makefile @@ -64,6 +64,9 @@ flake8: venv-dev-upgrade ## Run flake8 linter. codespell: venv-dev-upgrade ## Run codespell to fix common misspellings in text files ./venv/bin/codespell -S .git,./docs/_build,./Glances.egg-info,./venv,./glances/outputs,*.svg -L hart,bu,te,statics +semgrep: venv-dev-upgrade ## Run semgrep to find bugs and enforce code standards + ./venv/bin/semgrep --config=auto --lang python --use-git-ignore ./glances + profiling: ## How to start the profiling of the Glances software @echo "Please complete and run: sudo ./venv/bin/py-spy record -o ./docs/_static/glances-flame.svg -d 60 -s --pid " diff --git a/dev-requirements.txt b/dev-requirements.txt index 0e7cf17e..f548a0eb 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -8,5 +8,6 @@ autoflake codespell memory-profiler matplotlib +semgrep setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability \ No newline at end of file