Disable OnSameLine & don't check space before open brace

Because the script analyzer often complains that we can always use the
function open brace on the same line as the function name, which is not
the case, I finally decided to correct this today. I set the attribute
OnSameLine to False and disabled the check for space before open Brace.
This commit is contained in:
Yonas Habteab 2020-11-05 13:11:46 +01:00
parent df03f1e736
commit 98603071ab
2 changed files with 3 additions and 2 deletions

View file

@ -34,7 +34,7 @@
}; };
PSPlaceOpenBrace = @{ PSPlaceOpenBrace = @{
Enable = $true Enable = $true
OnSameLine = $true OnSameLine = $false
NewLineAfter = $true NewLineAfter = $true
IgnoreOneLineBlock = $true IgnoreOneLineBlock = $true
}; };
@ -52,7 +52,7 @@
}; };
PSUseConsistentWhitespace = @{ PSUseConsistentWhitespace = @{
Enable = $true Enable = $true
CheckOpenBrace = $true CheckOpenBrace = $false
CheckOpenParen = $true CheckOpenParen = $true
CheckOperator = $false CheckOperator = $false
CheckSeparator = $true CheckSeparator = $true

View file

@ -25,6 +25,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#130](https://github.com/Icinga/icinga-powershell-framework/issues/130) Fix crash while running services as background task to collect metrics over time by missing Performance Counter cache initialisation * [#130](https://github.com/Icinga/icinga-powershell-framework/issues/130) Fix crash while running services as background task to collect metrics over time by missing Performance Counter cache initialisation
* [#138](https://github.com/Icinga/icinga-powershell-framework/issues/138) Fixes possible value overflow on `Convert-Bytes` while converting from anything larger than MB to Bytes * [#138](https://github.com/Icinga/icinga-powershell-framework/issues/138) Fixes possible value overflow on `Convert-Bytes` while converting from anything larger than MB to Bytes
* [#140](https://github.com/Icinga/icinga-powershell-framework/issues/140) Fixes version fetching for not loaded modules during upgrades/plugin calls with `Get-IcingaPowerShellModuleVersion` * [#140](https://github.com/Icinga/icinga-powershell-framework/issues/140) Fixes version fetching for not loaded modules during upgrades/plugin calls with `Get-IcingaPowerShellModuleVersion`
* [#143](https://github.com/Icinga/icinga-powershell-framework/issues/143) Fixes the annoying hint from the analyzer to check space before open brace
## 1.2.0 (2020-08-28) ## 1.2.0 (2020-08-28)