Skip to content

Commit

Permalink
add mention of .semgrepignore
Browse files Browse the repository at this point in the history
  • Loading branch information
DOCtorActoAntohich committed Sep 27, 2023
1 parent 397cf6a commit e4e22e8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e4e22e8

Please sign in to comment.