Open codykonior opened 6 years ago
You can configure this rule.
You can but I believe users should not have to - not for language built into Pester/Gherkin which in turn is built into and distributed with Windows PowerShell.
I agree that this could certainly be improved because Pester is the most commonly used test framework by now. We are open to PRs but otherwise this might take some time otherwise until it gets fixed. Just as a side note: In the future, Pester will get removed from PowerShell again (has already in PowerShell Core and is planned for Windows PowerShell as well) due to various problems.
Gherkin (including in Pester) has a few aliases which you are meant to use when creating steps.
These are valid uses of the alias and shouldn't trigger analyzer warnings.
Steps to reproduce
Create a Gherkin (Pester) step file like Blah.Steps.ps1
Then Invoke-ScriptAnalyzer Blah.Steps.ps1
Expected behavior
No issues.
Actual behavior
Environment data
1.16.1