Skip to content

Commit 1fe9224

Browse files
authored
Update module using latest patterns (#85)
1 parent 33a94a8 commit 1fe9224

18 files changed

+1136
-381
lines changed

.vscode/settings.json

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,22 @@
77
"powershell.codeFormatting.whitespaceAroundOperator": true,
88
"powershell.codeFormatting.whitespaceAfterSeparator": true,
99
"powershell.codeFormatting.ignoreOneLineBlock": false,
10-
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline",
10+
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline",
1111
"powershell.codeFormatting.preset": "Custom",
1212
"powershell.codeFormatting.alignPropertyValuePairs": true,
13-
"files.trimTrailingWhitespace": true,
14-
"files.insertFinalNewline": true,
13+
"powershell.codeFormatting.useConstantStrings": true,
14+
"powershell.developer.bundledModulesPath": "${cwd}/output/RequiredModules",
1515
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1",
1616
"powershell.scriptAnalysis.enable": true,
17+
"files.trimTrailingWhitespace": true,
18+
"files.trimFinalNewlines": true,
19+
"files.insertFinalNewline": true,
1720
"files.associations": {
1821
"*.ps1xml": "xml"
1922
},
23+
"cSpell.dictionaries": [
24+
"powershell"
25+
],
2026
"cSpell.words": [
2127
"COMPANYNAME",
2228
"HKLM",
@@ -41,8 +47,21 @@
4147
"pscmdlet",
4248
"steppable"
4349
],
50+
"cSpell.ignorePaths": [
51+
".git"
52+
],
4453
"[markdown]": {
4554
"files.trimTrailingWhitespace": false,
4655
"files.encoding": "utf8"
47-
}
56+
},
57+
"powershell.pester.useLegacyCodeLens": false,
58+
"pester.testFilePath": [
59+
"[tT]ests/[qQ][aA]/*.[tT]ests.[pP][sS]1",
60+
"[tT]ests/[uU]nit/**/*.[tT]ests.[pP][sS]1",
61+
"[tT]ests/[uU]nit/*.[tT]ests.[pP][sS]1"
62+
],
63+
"pester.runTestsInNewProcess": true,
64+
"pester.pesterModulePath": "./output/RequiredModules/Pester",
65+
"powershell.pester.codeLens": true,
66+
"pester.suppressCodeLensNotice": true,
4867
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
- Updated to load localization strings correctly.
2525
- General code cleanup
2626
- Updated Classifications ID reference with additional potential classification GUIDs
27+
- Updated module to use latest Sampler files and modules.
2728

2829
### Added
2930

File renamed without changes.

RequiredModules.psd1

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,31 @@
44
AddToPath = $true
55
Target = 'output\RequiredModules'
66
Parameters = @{
7-
Repository = 'PSGallery'
7+
Repository = 'PSGallery'
88
}
99
}
1010

11-
'powershell-yaml' = 'latest'
1211
InvokeBuild = 'latest'
1312
PSScriptAnalyzer = 'latest'
14-
Pester = '5.3.3'
13+
Pester = 'latest'
1514
Plaster = 'latest'
16-
ModuleBuilder = '1.0.0'
15+
ModuleBuilder = 'latest'
1716
ChangelogManagement = 'latest'
1817
Sampler = 'latest'
1918
'Sampler.GitHubTasks' = 'latest'
2019
MarkdownLinkCheck = 'latest'
2120
'DscResource.Test' = 'latest'
22-
'DscResource.AnalyzerRules' = 'latest'
2321
xDscResourceDesigner = 'latest'
24-
'DscResource.DocGenerator' = 'latest'
22+
23+
# Build dependencies needed for using the module
2524
'DscResource.Common' = 'latest'
2625

26+
# Analyzer rules
27+
'DscResource.AnalyzerRules' = 'latest'
28+
29+
# Prerequisite modules for documentation.
30+
'DscResource.DocGenerator' = 'latest'
31+
PlatyPS = 'latest'
2732

2833
# PSPKI = 'latest'
2934
# 'DscResource.Common' = @{

0 commit comments

Comments
 (0)