From e4e22e8e5af255c33dbdfa0e28cfcc5e9a900f30 Mon Sep 17 00:00:00 2001 From: DOCtorActoAntohich Date: Wed, 27 Sep 2023 12:51:20 +0300 Subject: [PATCH] add mention of `.semgrepignore` --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 20003cb..fda5622 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,32 @@ To add them, write their exact filenames, without the extension. For example: args: ["--target", ".", "else-block", "raw-open-call"] ``` +## `.semgrepignore` + +`.semgrepignore` file works as usual - files and directories listed there will not be examined. +Put this file in the target directory. + +Example `.semprepignore`: + +```dockerfile +# Common large paths +node_modules/ +build/ +dist/ +vendor/ +.env/ +.venv/ +.tox/ +*.min.js +.npm/ +.yarn/ + +# Common test paths +# test/ +# tests/ +*_test.go +``` + ## Testing and writing more rules Go for `make test` to make tests run.