Skip to content

Commit 2720866

Browse files
authored
Merge pull request #28 from PlagueHO/dev
Releasing 1.2.0.0
2 parents 7c5f22d + fa594f1 commit 2720866

20 files changed

+1112
-156
lines changed

.vscode/analyzersettings.psd1

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
@{
2+
<#
3+
For the custom rules to work, the DscResource.Tests repo must be
4+
cloned. It is automatically clone as soon as any unit or
5+
integration tests are run.
6+
#>
7+
CustomRulePath = '.\DSCResource.Tests\DscResource.AnalyzerRules'
8+
9+
IncludeRules = @(
10+
# DSC Resource Kit style guideline rules.
11+
'PSAvoidDefaultValueForMandatoryParameter',
12+
'PSAvoidDefaultValueSwitchParameter',
13+
'PSAvoidInvokingEmptyMembers',
14+
'PSAvoidNullOrEmptyHelpMessageAttribute',
15+
'PSAvoidUsingCmdletAliases',
16+
'PSAvoidUsingComputerNameHardcoded',
17+
'PSAvoidUsingDeprecatedManifestFields',
18+
'PSAvoidUsingEmptyCatchBlock',
19+
'PSAvoidUsingInvokeExpression',
20+
'PSAvoidUsingPositionalParameters',
21+
'PSAvoidShouldContinueWithoutForce',
22+
'PSAvoidUsingWMICmdlet',
23+
'PSAvoidUsingWriteHost',
24+
'PSDSCReturnCorrectTypesForDSCFunctions',
25+
'PSDSCStandardDSCFunctionsInResource',
26+
'PSDSCUseIdenticalMandatoryParametersForDSC',
27+
'PSDSCUseIdenticalParametersForDSC',
28+
'PSMisleadingBacktick',
29+
'PSMissingModuleManifestField',
30+
'PSPossibleIncorrectComparisonWithNull',
31+
'PSProvideCommentHelp',
32+
'PSReservedCmdletChar',
33+
'PSReservedParams',
34+
'PSUseApprovedVerbs',
35+
'PSUseCmdletCorrectly',
36+
'PSUseOutputTypeCorrectly',
37+
'PSAvoidGlobalVars',
38+
'PSAvoidUsingConvertToSecureStringWithPlainText',
39+
'PSAvoidUsingPlainTextForPassword',
40+
'PSAvoidUsingUsernameAndPasswordParams',
41+
'PSDSCUseVerboseMessageInDSCResource',
42+
'PSShouldProcess',
43+
'PSUseDeclaredVarsMoreThanAssignments',
44+
'PSUsePSCredentialType',
45+
46+
<#
47+
This is to test all the DSC Resource Kit custom rules.
48+
The name of the function-blocks of each custom rule start
49+
with 'Measure*'.
50+
#>
51+
'Measure-*'
52+
)
53+
}

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"powershell.codeFormatting.whitespaceAroundOperator": true,
99
"powershell.codeFormatting.whitespaceAfterSeparator": true,
1010
"powershell.codeFormatting.ignoreOneLineBlock": false,
11-
"powershell.codeFormatting.alignPropertyValuePairs": true,
11+
"powershell.codeFormatting.preset": "Custom",
1212
"files.trimTrailingWhitespace": true,
13-
"files.insertFinalNewline": true
13+
"files.insertFinalNewline": true,
14+
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1"
1415
}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Versions
22

3+
## 1.2.0.0
4+
5+
- Added .VSCode settings for applying DSC PSSA rules - fixes [Issue #25](https://github.com/PlagueHO/FileContentDsc/issues/25).
6+
- Added an Encoding parameter to the KeyValuePairFile and ReplaceText
7+
resources - fixes [Issue #5](https://github.com/PlagueHO/FileContentDsc/issues/5).
8+
39
## 1.1.0.0
410

511
- Enabled PSSA rule violations to fail build - Fixes [Issue #6](https://github.com/PlagueHO/FileContentDsc/issues/6).

0 commit comments

Comments
 (0)