Christoph Bergmeister

Results 271 comments of Christoph Bergmeister

Yes that would make sense. Even just having it for PS7 only would be good. The more goodies PS7 has, the more it will naturally convince people to move over...

This doesn't seem to happen with ```pwsh $private:aa='sdf' get-childitem $aa ``` So might be an easy improvement if you want to make that. But as the rule generally can result...

Yes, we already have a similar rule around accidental usage of = instead of -eq

@gaelcolas For settings support, there is issue #1230 The way the extension works, I'd still say it is something to be implemented in the extension for your use case. Because...

Some more details in this thread: https://twitter.com/JustinWGrote/status/1282447447940198400

Thanks for supplying that info, which helped. As I suspected, this is coming from the CommandInfo Cache that PSSA has and we have seen similar problems in #1516. Unfortunately, the...

> Did you noticed that my errors are always connected with UseCorrectCasing ? [tc_psScriptAnalzyer_error_202212071402.txt](https://github.com/PowerShell/PSScriptAnalyzer/files/10176339/tc_psScriptAnalzyer_error_202212071402.txt) [tc_psScriptAnalzyer_error_202212071347.txt](https://github.com/PowerShell/PSScriptAnalyzer/files/10176340/tc_psScriptAnalzyer_error_202212071347.txt) Yes, I was going to ask a) how your settings file looks like and b)...

> > @bergmeister @SeeminglyScience I'm wondering whether the task we run these rules in should have a more general catch (right now we only catch `scriptRuleException`), which we could then...

PowerShell passes WhatIfPreference on automatically (except for splatting with binary cmdlets due https://github.com/PowerShell/PowerShell/issues/4568) so no need to pass like `-WhatIf:$WhatIfPreference` unless I am not aware of one of the many...

The documentation here says: https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer?view=ps-modules#suppressing-rules > Within the scope of the script, function, or parameter that you decorated, all rule violations are suppressed. Therefore, this is currently by design. You...