mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.7 KiB
PowerShell
53 lines
1.7 KiB
PowerShell
@{
|
|
Rules = @{
|
|
PSAvoidLongLines = @{
|
|
Enable = $true
|
|
MaximumLineLength = 160
|
|
}
|
|
PSPlaceOpenBrace = @{
|
|
Enable = $true
|
|
OnSameLine = $true
|
|
IgnoreOneLineBlock = $true
|
|
NewLineAfter = $true
|
|
}
|
|
PSPlaceCloseBrace = @{
|
|
Enable = $true
|
|
IgnoreOneLineBlock = $true
|
|
NewLineAfter = $true
|
|
NoEmptyLineBefore = $false
|
|
}
|
|
PSUseConsistentIndentation = @{
|
|
Enable = $true
|
|
IndentationSize = 4
|
|
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
|
|
Kind = 'space'
|
|
}
|
|
PSUseConsistentWhitespace = @{
|
|
Enable = $true
|
|
CheckInnerBrace = $true
|
|
CheckOpenBrace = $true
|
|
CheckOpenParen = $true
|
|
CheckOperator = $true
|
|
CheckPipe = $true
|
|
CheckPipeForRedundantWhitespace = $false
|
|
CheckSeparator = $true
|
|
CheckParameter = $false
|
|
IgnoreAssignmentOperatorInsideHashTable = $false
|
|
}
|
|
}
|
|
ExcludeRules = @(
|
|
'PSUseOutputTypeCorrectly',
|
|
'PSUseShouldProcessForStateChangingFunctions',
|
|
# We send strings as plaintext so will always come across the 3 issues
|
|
'PSAvoidUsingPlainTextForPassword',
|
|
'PSAvoidUsingConvertToSecureStringWithPlainText',
|
|
'PSAvoidUsingUserNameAndPassWordParams',
|
|
# We send the module as a base64 encoded string and a BOM will cause
|
|
# issues here
|
|
'PSUseBOMForUnicodeEncodedFile',
|
|
# Too many false positives, there are many cases where shared utils
|
|
# invoke user defined code but not all parameters are used.
|
|
'PSReviewUnusedParameter'
|
|
)
|
|
}
|