From 96a44d8867f8d5c36af37ea125d61da190d12bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gonz=C3=A1lez=20Lopes?= Date: Wed, 8 May 2019 22:05:29 +0000 Subject: [PATCH] Add whitelisting styles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel González Lopes --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eecd3a1d2..23ec83e73 100644 --- a/README.md +++ b/README.md @@ -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