summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2023-02-04 16:08:22 +0100
committernicolargo <nicolas@nicolargo.com>2023-02-04 16:08:22 +0100
commit650df696dcf7640e89fbf86989bab9c361273bfb (patch)
tree310f816b366619661c928020e48015205df9be8d /Makefile
parent476e9b5760b56c05aeda14b3ac49264ec3318588 (diff)
Add semgrep support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
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 <GLANCES PID>"