2020-08-11 08:49:01 -04:00
|
|
|
@{
|
|
|
|
|
Severity = @(
|
|
|
|
|
'Error',
|
|
|
|
|
'Warning',
|
|
|
|
|
'Information'
|
|
|
|
|
);
|
|
|
|
|
IncludeRules = @(
|
|
|
|
|
'PSAvoidUsingPositionalParameters',
|
|
|
|
|
'PSAvoidUsingInternalURLs',
|
|
|
|
|
'PSAvoidUninitializedVariable',
|
|
|
|
|
'PSUseApprovedVerbs',
|
|
|
|
|
'PSAvoidUsingCmdletAliases',
|
|
|
|
|
'PSAvoidUsingPlainTextForPassword',
|
|
|
|
|
'PSMissingModuleManifestField',
|
|
|
|
|
'PSUseDeclaredVarsMoreThanAssigments',
|
|
|
|
|
'PSAvoidTrailingWhitespace',
|
|
|
|
|
'PSAvoidUsingDeprecatedManifestFields',
|
|
|
|
|
'PSUseToExportFieldsInManifest',
|
|
|
|
|
'PSUseProcessBlockForPipelineCommand',
|
|
|
|
|
'PSUseConsistentIndentation',
|
|
|
|
|
'PSUseCompatibleCmdlets',
|
|
|
|
|
'PSUseConsistentWhitespace',
|
|
|
|
|
'PSAlignAssignmentStatement',
|
|
|
|
|
'PSUseCorrectCasing'
|
|
|
|
|
);
|
|
|
|
|
ExcludeRules = @(
|
|
|
|
|
'PSAvoidGlobalVars',
|
2020-08-11 08:50:53 -04:00
|
|
|
'PSUseSingularNouns',
|
|
|
|
|
'PSAvoidUsingWriteHost'
|
2020-08-11 08:49:01 -04:00
|
|
|
)
|
|
|
|
|
Rules = @{
|
|
|
|
|
PSUseCompatibleCmdlets = @{
|
|
|
|
|
Compatibility = @("4.0")
|
|
|
|
|
};
|
|
|
|
|
PSPlaceOpenBrace = @{
|
|
|
|
|
Enable = $true
|
2020-11-05 07:11:46 -05:00
|
|
|
OnSameLine = $false
|
2020-08-11 08:49:01 -04:00
|
|
|
NewLineAfter = $true
|
|
|
|
|
IgnoreOneLineBlock = $true
|
|
|
|
|
};
|
|
|
|
|
PSPlaceCloseBrace = @{
|
|
|
|
|
Enable = $true
|
|
|
|
|
NewLineAfter = $true
|
|
|
|
|
IgnoreOneLineBlock = $true
|
|
|
|
|
NoEmptyLineBefore = $true
|
|
|
|
|
};
|
|
|
|
|
PSUseConsistentIndentation = @{
|
|
|
|
|
Enable = $true
|
|
|
|
|
Kind = 'space'
|
|
|
|
|
IndentationSize = 4
|
|
|
|
|
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
|
|
|
|
|
};
|
|
|
|
|
PSUseConsistentWhitespace = @{
|
|
|
|
|
Enable = $true
|
2020-11-05 07:11:46 -05:00
|
|
|
CheckOpenBrace = $false
|
2020-08-11 08:49:01 -04:00
|
|
|
CheckOpenParen = $true
|
|
|
|
|
CheckOperator = $false
|
|
|
|
|
CheckSeparator = $true
|
|
|
|
|
};
|
|
|
|
|
PSAlignAssignmentStatement = @{
|
|
|
|
|
Enable = $true
|
|
|
|
|
};
|
|
|
|
|
PSUseCorrectCasing = @{
|
|
|
|
|
Enable = $true
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|