Skip to content

Commit d8d71e1

Browse files
X-Guardianjohlju
authored andcommitted
xActiveDirectory: Fix Script Analyzer Rule Failures (#303)
- Changes to xActiveDirectory - Fix Script Analyzer rule failures - Opt-in to "Common Tests - Custom Script Analyzer Rules" - Opt-in to "Common Tests - Required Script Analyzer Rules" - Opt-in to "Common Tests - Flagged Script Analyzer Rules"
1 parent 12fbc23 commit d8d71e1

18 files changed

+571
-150
lines changed

.MetaTestOptIn.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[
2-
"Common Tests - Validate Markdown Files"
2+
"Common Tests - Validate Markdown Files",
3+
"Common Tests - Custom Script Analyzer Rules",
4+
"Common Tests - Required Script Analyzer Rules",
5+
"Common Tests - Flagged Script Analyzer Rules"
36
]

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
- Compare-ResourcePropertyState
1010
- Test-DscPropertyState
1111
- Move the examples in the README.md to Examples folder
12+
- Fix Script Analyzer rule failures
13+
- Opt-in to "Common Tests - Custom Script Analyzer Rules"
14+
- Opt-in to "Common Tests - Required Script Analyzer Rules"
15+
- Opt-in to "Common Tests - Flagged Script Analyzer Rules"
1216
- Changes to xADComputer
1317
- Refactored the resource and the unit tests.
1418
- BREAKING CHANGE: The `Enabled` property is **DEPRECATED** and is no

DSCResources/MSFT_xADDomainDefaultPasswordPolicy/MSFT_xADDomainDefaultPasswordPolicy.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function Get-TargetResource
3838
[OutputType([System.Collections.Hashtable])]
3939
param
4040
(
41-
[Parameter(Mandatory)]
41+
[Parameter(Mandatory = $true)]
4242
[System.String] $DomainName,
4343

4444
[Parameter()]
@@ -77,7 +77,7 @@ function Test-TargetResource
7777
[OutputType([System.Boolean])]
7878
param
7979
(
80-
[Parameter(Mandatory)]
80+
[Parameter(Mandatory = $true)]
8181
[System.String] $DomainName,
8282

8383
[Parameter()]
@@ -163,7 +163,7 @@ function Set-TargetResource
163163
[CmdletBinding()]
164164
param
165165
(
166-
[Parameter(Mandatory)]
166+
[Parameter(Mandatory = $true)]
167167
[System.String] $DomainName,
168168

169169
[Parameter()]

0 commit comments

Comments
 (0)