File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ Describe "Test Name parameters" {
61
61
62
62
It " get Rules with no parameters supplied" {
63
63
$defaultRules = Get-ScriptAnalyzerRule
64
- $expectedNumRules = 51
64
+ $expectedNumRules = 52
65
65
if ((Test-PSEditionCoreClr ) -or (Test-PSVersionV3 ) -or (Test-PSVersionV4 ))
66
66
{
67
67
# for PSv3 PSAvoidGlobalAliases is not shipped because
@@ -159,7 +159,7 @@ Describe "TestSeverity" {
159
159
160
160
It " filters rules based on multiple severity inputs" {
161
161
$rules = Get-ScriptAnalyzerRule - Severity Error, Information
162
- $rules.Count | Should be 13
162
+ $rules.Count | Should be 14
163
163
}
164
164
165
165
It " takes lower case inputs" {
Original file line number Diff line number Diff line change 1
1
function Verb-Files
2
2
{
3
- [CmdletBinding (DefaultParameterSetName = ' Parameter Set 1' ,
4
- SupportsShouldProcess = $true ,
3
+ [CmdletBinding (DefaultParameterSetName = ' Parameter Set 1' ,
4
+ SupportsShouldProcess = $true ,
5
5
PositionalBinding = $false ,
6
6
HelpUri = ' http://www.microsoft.com/' ,
7
7
ConfirmImpact = ' Medium' )]
12
12
Param
13
13
(
14
14
# Param1 help description
15
- [Parameter (Mandatory = $true ,
15
+ [Parameter (Mandatory = $true ,
16
16
ValueFromPipeline = $true ,
17
- ValueFromPipelineByPropertyName = $true ,
18
- ValueFromRemainingArguments = $false ,
17
+ ValueFromPipelineByPropertyName = $true ,
18
+ ValueFromRemainingArguments = $false ,
19
19
Position = 0 ,
20
20
ParameterSetName = ' Parameter Set 1' )]
21
21
[ValidateNotNull ()]
22
22
[ValidateNotNullOrEmpty ()]
23
23
[ValidateCount (0 , 5 )]
24
24
[ValidateSet (" sun" , " moon" , " earth" )]
25
- [Alias (" p1" )]
25
+ [Alias (" p1" )]
26
26
$Param1 ,
27
27
28
28
# Param2 help description
You can’t perform that action at this time.
0 commit comments