From d945a41e1e4fad93828e4dff10b1fe508b6d4eb5 Mon Sep 17 00:00:00 2001 From: Robert Holt Date: Tue, 6 Oct 2020 12:05:46 -0700 Subject: [PATCH] Fix suppression example errors in README (#1593) Fixes https://github.com/PowerShell/PSScriptAnalyzer/issues/1592 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a315a539c..a35d55177 100644 --- a/README.md +++ b/README.md @@ -299,13 +299,13 @@ function start-bam { Suppress violations in all the functions: ``` PowerShell -[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', Scope='Function', Target='*')] +[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', '', Scope='Function', Target='*')] Param() ``` Suppress violation in `start-bar`, `start-baz` and `start-bam` but not in `start-foo`: ``` PowerShell -[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', Scope='Function', Target='start-b*')] +[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', '', Scope='Function', Target='start-b*')] Param() ```