Skip to content

Commit 937bf59

Browse files
committed
include PSScriptAnalyzer rule PSReviewUnusedParameter
According to PowerShell/PSScriptAnalyzer#1472 (comment), this rule is now evaluated with less false positive.
1 parent 7be7523 commit 937bf59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

d365fo.tools/tests/general/PSScriptAnalyzer.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Describe 'Invoking PSScriptAnalyzer against commandbase' {
1818
foreach ($file in $commandFiles)
1919
{
2020
Context "Analyzing $($file.BaseName)" {
21-
$analysis = Invoke-ScriptAnalyzer -Path $file.FullName -ExcludeRule PSAvoidTrailingWhitespace, PSShouldProcess, PSReviewUnusedParameter
21+
$analysis = Invoke-ScriptAnalyzer -Path $file.FullName -ExcludeRule PSAvoidTrailingWhitespace, PSShouldProcess
2222

2323
forEach ($rule in $scriptAnalyzerRules)
2424
{

0 commit comments

Comments
 (0)