mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-18 15:46:14 -05:00
Disabling UseConsistentIndentation because it is not properly working for multi-line commands with arguments and array/hashtable objects
69 lines
2.2 KiB
PowerShell
69 lines
2.2 KiB
PowerShell
@{
|
|
Severity = @(
|
|
'Error',
|
|
'Warning',
|
|
'Information'
|
|
);
|
|
IncludeRules = @(
|
|
'PSAvoidUsingPositionalParameters',
|
|
'PSAvoidUsingInternalURLs',
|
|
'PSAvoidUninitializedVariable',
|
|
'PSUseApprovedVerbs',
|
|
'PSAvoidUsingCmdletAliases',
|
|
'PSAvoidUsingPlainTextForPassword',
|
|
'PSMissingModuleManifestField',
|
|
'PSUseDeclaredVarsMoreThanAssigments',
|
|
'PSAvoidTrailingWhitespace',
|
|
'PSAvoidUsingDeprecatedManifestFields',
|
|
'PSUseProcessBlockForPipelineCommand',
|
|
'PSUseConsistentIndentation',
|
|
'PSUseCompatibleCmdlets',
|
|
'PSUseConsistentWhitespace',
|
|
'PSAlignAssignmentStatement',
|
|
'PSUseCorrectCasing'
|
|
);
|
|
ExcludeRules = @(
|
|
'PSAvoidGlobalVars',
|
|
'PSUseSingularNouns',
|
|
'PSAvoidUsingWriteHost',
|
|
'PSUseToExportFieldsInManifest'
|
|
)
|
|
Rules = @{
|
|
PSUseCompatibleCmdlets = @{
|
|
Compatibility = @("4.0")
|
|
};
|
|
PSPlaceOpenBrace = @{
|
|
Enable = $true
|
|
OnSameLine = $false
|
|
NewLineAfter = $true
|
|
IgnoreOneLineBlock = $true
|
|
};
|
|
PSPlaceCloseBrace = @{
|
|
Enable = $true
|
|
NewLineAfter = $true
|
|
IgnoreOneLineBlock = $true
|
|
NoEmptyLineBefore = $true
|
|
};
|
|
# Disabled for the moment, as the indentation handling is not properly
|
|
# handling multi-line arrays and hashtables
|
|
PSUseConsistentIndentation = @{
|
|
Enable = $false
|
|
Kind = 'space'
|
|
IndentationSize = 4
|
|
PipelineIndentation = 'IncreaseIndentationAfterEveryPipeline'
|
|
};
|
|
PSUseConsistentWhitespace = @{
|
|
Enable = $true
|
|
CheckOpenBrace = $false
|
|
CheckOpenParen = $true
|
|
CheckOperator = $false
|
|
CheckSeparator = $true
|
|
};
|
|
PSAlignAssignmentStatement = @{
|
|
Enable = $true
|
|
};
|
|
PSUseCorrectCasing = @{
|
|
Enable = $true
|
|
};
|
|
}
|
|
}
|