Skip to content

Commit b11037f

Browse files
🩹 [Patch]: Simplify PSScriptAnalyzer test description and remove unnecessary suppression attribute
1 parent 27fc670 commit b11037f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

‎scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ BeforeDiscovery {
6565
}
6666
}
6767

68-
Describe "PSScriptAnalyzer tests using settings file [$relativeSettingsFilePath]" {
68+
Describe "PSScriptAnalyzer" {
6969
BeforeAll {
7070
$testResults = Invoke-ScriptAnalyzer -Path $Path -Settings $SettingsFilePath -Recurse -Verbose:$false
7171
Write-Warning "Found [$($testResults.Count)] issues"

‎tests/srcWithManifestTestRepo/src/functions/public/SomethingElse/Set-PSModuleTest.ps1‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
99
"Hello, World!"
1010
#>
11-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
12-
'PSUseShouldProcessForStateChangingFunctions', '', Scope = 'Function',
13-
Justification = 'Reason for suppressing'
14-
)]
1511
[CmdletBinding()]
1612
param (
1713
# Name of the person to greet.

0 commit comments

Comments
 (0)