Skip to content

Commit

Permalink
include PSScriptAnalyzer rule PSReviewUnusedParameter
Browse files Browse the repository at this point in the history
According to PowerShell/PSScriptAnalyzer#1472 (comment), this rule is now evaluated with less false positive.
  • Loading branch information
FH-Inway committed May 2, 2024
1 parent 7be7523 commit 937bf59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d365fo.tools/tests/general/PSScriptAnalyzer.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Describe 'Invoking PSScriptAnalyzer against commandbase' {
foreach ($file in $commandFiles)
{
Context "Analyzing $($file.BaseName)" {
$analysis = Invoke-ScriptAnalyzer -Path $file.FullName -ExcludeRule PSAvoidTrailingWhitespace, PSShouldProcess, PSReviewUnusedParameter
$analysis = Invoke-ScriptAnalyzer -Path $file.FullName -ExcludeRule PSAvoidTrailingWhitespace, PSShouldProcess

forEach ($rule in $scriptAnalyzerRules)
{
Expand Down

0 comments on commit 937bf59

Please sign in to comment.