-
I am writing [custom rules](https://github.com/lzybkr/PesterAnalyzerRules) and I see an error reported twice when there should be just one report.
I invoke script analyzer like this:
```powershe…
-
Steps to reproduce
------------------
Using `Invoke-Formatter` does not apply the `PSAvoidTrailingWhitespace ` rule as shown by the following example script:
```PowerShell
$script = @"
Function…
-
Steps to reproduce
------------------
I have a bunch of custom rules written in PowerShell. For some of the rules I populate `RuleSuppressionId` in the diagnostic record, so that I can use that for …
-
Steps to reproduce
------------------
```PowerShell
Invoke-ScriptAnalyzer -IncludeSuppressed -ScriptDefinition 'Param([string] $creditor = ""); Write-Information $creditor'
```
Expected behav…
-
### What You Are Seeing?
It seems the automatic bootstrapping of Cake in v1.0.0-rc0001 causes warnings to appear twice:
![image](https://user-images.githubusercontent.com/177608/100886180-e7db39…
-
**Repost:** Hoping to get some clarification, since this was mechanically closed based on a factually incorrect response to #1912 .
Steps to reproduce
------------------
```PowerShell
Invoke-S…
-
If the rule is testing a function hat has a parameter with a type that is not loaded into the session the rule fails on all parameters in all examples.
For example if having this parameter:
```pow…
-
Steps to reproduce
------------------
```
# $sb = {
Invoke-Command -Session $psSession -ArgumentList $path -ErrorAction Stop -ScriptBlock {
Param ($Foo)
return $Foo
}}
# Invoke…
-
**Summary of the new feature**
Try formulating it in user story style (if applicable):
'As a python and powershell developer I want ScriptAnalyzer to detect when I use elif (python) instead of els…
agowa updated
4 years ago
-
Hi! We are using PSSA to analyze syntax errors in '.ps1' files with custom rules. It seems that a new PowerShell session is created when we invoke-ScriptAnalyzer with custom rules, then all the module…