Skip to content

Commit

Permalink
Merge pull request #638 from johlju/fix-customrule
Browse files Browse the repository at this point in the history
xPSDesiredStateConfiguration: Fix keywords to lower-case to align with guideline
  • Loading branch information
PlagueHO authored Sep 11, 2019
2 parents 19b04f0 + da3eb73 commit 02853d1
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Changes to xPSDesiredStateConfiguration
- Fix keywords to lower-case to align with guideline.
- Added SMB PullServer support for publishing.

## 8.9.0.0
Expand Down
4 changes: 2 additions & 2 deletions DSCResources/MSFT_xDSCWebService/MSFT_xDSCWebService.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ function Test-TargetResource
$website = Get-Website -Name $EndpointName
$stop = $true

:WebSiteTests Do
:WebSiteTests do
{
Write-Verbose -Message 'Check Ensure'

Expand Down Expand Up @@ -909,7 +909,7 @@ function Test-TargetResource
}
$stop = $false
}
While($stop)
while ($stop)

$desiredConfigurationMatch
}
Expand Down
8 changes: 4 additions & 4 deletions DSCResources/xFileUpload/xFileUpload.schema.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
-SourcePath 'C:\folder\file.txt' `
-Credential $credential
#>
Configuration xFileUpload
configuration xFileUpload
{
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]

[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('DscResource.AnalyzerRules\Measure-Keyword', '', Justification = 'Script resource name is seen as a keyword if this is not used.')]
param
(
[Parameter(Mandatory = $true)]
Expand All @@ -56,7 +56,7 @@ Configuration xFileUpload
$CertificateThumbprint
)

$cacheLocation = "$env:ProgramData\Microsoft\Windows\PowerShell\Configuration\BuiltinProvCache\MSFT_xFileUpload"
$cacheLocation = "$env:ProgramData\Microsoft\Windows\PowerShell\configuration\BuiltinProvCache\MSFT_xFileUpload"

if ($Credential)
{
Expand Down
2 changes: 1 addition & 1 deletion DSCResources/xGroupSet/xGroupSet.schema.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Import-Module -Name $script:resourceSetHelperFilePath
.PARAMETER Credential
The credential to resolve all groups and user accounts.
#>
Configuration xGroupSet
configuration xGroupSet
{
[CmdletBinding()]
param
Expand Down
2 changes: 1 addition & 1 deletion DSCResources/xProcessSet/xProcessSet.schema.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Import-Module -Name $script:resourceSetHelperFilePath
at this path will be overwritten. This property cannot be specified at the same time
as Credential when running the processes as a local user.
#>
Configuration xProcessSet
configuration xProcessSet
{
[CmdletBinding()]
param
Expand Down
2 changes: 1 addition & 1 deletion DSCResources/xServiceSet/xServiceSet.schema.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Import-Module -Name $script:resourceSetHelperFilePath
right. The user account specified by this property must have access to the service
executable paths in order to start the services.
#>
Configuration xServiceSet
configuration xServiceSet
{
[CmdletBinding()]
param
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Import-Module -Name $script:resourceSetHelperFilePath
The custom file path to which to log this operation.
If not passed in, the default log path will be used (%windir%\logs\ServerManager.log).
#>
Configuration xWindowsFeatureSet
configuration xWindowsFeatureSet
{
[CmdletBinding()]
param
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Import-Module -Name $script:resourceSetHelperFilePath
.PARAMETER LogLevel
The level of detail to include in the log.
#>
Configuration xWindowsOptionalFeatureSet
configuration xWindowsOptionalFeatureSet
{
[CmdletBinding()]
param
Expand Down

0 comments on commit 02853d1

Please sign in to comment.