Skip to content

Commit

Permalink
↪️ Merge pull request #165 from dgzlopes/fix-139-document-whitelist-d…
Browse files Browse the repository at this point in the history
…irectives

Document additional whitelist directives
  • Loading branch information
KevinHock authored May 9, 2019
2 parents 473923e + 96a44d8 commit eb48def
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,15 @@ API_KEY = "blah-blah-but-actually-not-secret" # pragma: whitelist secret
print('hello world')
```

Inline commenting syntax for a multitude of languages is supported.
Inline commenting syntax for a multitude of languages is supported:

| Comment Style | Language Support |
| :---: | :---: |
| `#` | e.g. Python, Dockerfile, YAML |
| `//` | e.g. Go, C++, Java |
| `/* */` | e.g. C, Java|
| `'` | e.g. Visual Basic .NET|
| `--` | e.g. SQL, Haskell|

This may be a convenient way for you to whitelist secrets, without having to
regenerate the entire baseline again. Furthermore, this makes the whitelisted
Expand Down

0 comments on commit eb48def

Please sign in to comment.